Index: branches/5.1.x/core/kernel/db/db_connection.php =================================================================== diff -u -N -r14026 -r14235 --- branches/5.1.x/core/kernel/db/db_connection.php (.../db_connection.php) (revision 14026) +++ branches/5.1.x/core/kernel/db/db_connection.php (.../db_connection.php) (revision 14235) @@ -1,6 +1,6 @@ Query('SET NAMES \''.SQL_CHARSET.'\' COLLATE \''.SQL_COLLATION.'\''); } + $this->setError(0, ''); // reset error $this->setDB($db); } @@ -277,8 +278,6 @@ */ function showError($sql = '') { - $this->setError(0, ''); // reset error - if (!$this->connectionID) { return ; } @@ -436,6 +435,7 @@ } // set 1st checkpoint: end + $this->setError(0, ''); // reset error $this->queryID = $query_func($sql,$this->connectionID); if (is_resource($this->queryID)) { $ret = Array(); @@ -494,6 +494,7 @@ } // set 1st checkpoint: end + $this->setError(0, ''); // reset error $this->queryID = $query_func($sql, $this->connectionID); if( is_resource($this->queryID) )