Index: /branches/version-2_5-dev/data/class/SC_Query.php
===================================================================
--- /branches/version-2_5-dev/data/class/SC_Query.php	(revision 18773)
+++ /branches/version-2_5-dev/data/class/SC_Query.php	(revision 18774)
@@ -64,6 +64,8 @@
         }
 
-        $this->conn->setCharset(CHAR_CODE);
-        $this->conn->setFetchMode(MDB2_FETCHMODE_ASSOC);
+        if (!$this->isError()) {
+            $this->conn->setCharset(CHAR_CODE);
+            $this->conn->setFetchMode(MDB2_FETCHMODE_ASSOC);
+        }
         $this->dbFactory = SC_DB_DBFactory_Ex::getInstance();
         $this->where = "";
