Index: trunk/core/kernel/db/db_connection.php =================================================================== diff -u -N -r6685 -r7855 --- trunk/core/kernel/db/db_connection.php (.../db_connection.php) (revision 6685) +++ trunk/core/kernel/db/db_connection.php (.../db_connection.php) (revision 7855) @@ -77,7 +77,7 @@ * @var string */ var $lastQuery = ''; - + /** * Initializes connection class with * db type to used in future @@ -178,6 +178,10 @@ $func = $this->getMetaFunction('connect'); $this->connectionID = $func($host, $user, $pass, $force_new) or trigger_error("Database connection failed, please check your connection settings", E_USER_ERROR); if ($this->connectionID) { + if (defined('DBG_SQL_MODE')) { + $this->Query('SET sql_mode = \''.DBG_SQL_MODE.'\''); + } + $this->setDB($db); $this->showError(); }