Index: branches/5.2.x/core/kernel/db/dbitem.php =================================================================== diff -u -N -r14799 -r14998 --- branches/5.2.x/core/kernel/db/dbitem.php (.../dbitem.php) (revision 14799) +++ branches/5.2.x/core/kernel/db/dbitem.php (.../dbitem.php) (revision 14998) @@ -1,6 +1,6 @@ Conn->ChangeQuery($sql) === false ) { // there was and sql error + $this->SetError($this->IDField, 'sql_error', '#' . $this->Conn->getErrorCode() . ': ' . $this->Conn->getErrorMsg()); return false; } @@ -794,6 +795,7 @@ //Executing the query and checking the result if ($this->Conn->ChangeQuery($sql) === false) { + $this->SetError($this->IDField, 'sql_error', '#' . $this->Conn->getErrorCode() . ': ' . $this->Conn->getErrorMsg()); return false; }