From 854231744d322a73f2500bbd0a0857271cf3e020 Mon Sep 17 00:00:00 2001 From: Adam Zammit Date: Mon, 11 May 2020 08:38:23 +1000 Subject: [PATCH] make sure sql_mode is set the way queXS expects it --- db.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/db.inc.php b/db.inc.php index e9b73a6c..8080ceb4 100644 --- a/db.inc.php +++ b/db.inc.php @@ -78,6 +78,10 @@ $db->Execute("set names 'utf8'"); //store session in database (see sessions2 table) //ADOdb_Session::config(DB_TYPE, DB_HOST, DB_USER, DB_PASS, DB_NAME, array('table' => LIME_PREFIX . 'sessions')); +//make sure sql_mode is right +$sqlSet = "SET SESSION sql_mode = '';"; +$db->Execute($sqlSet); + /** * Get a setting from the database