From 3e2907608614a2f87429b89c38093874691f727d Mon Sep 17 00:00:00 2001 From: Adam Zammit Date: Mon, 11 May 2020 08:39:52 +1000 Subject: [PATCH] Set sql_mode the way queXS expects it --- db.inc.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/db.inc.php b/db.inc.php index a45fe3f9..b9447a50 100644 --- a/db.inc.php +++ b/db.inc.php @@ -76,6 +76,9 @@ if (DEBUG == true) $db->debug = true; $db->Execute("set names 'utf8'"); +//make sure sql_mode is right +$sqlSet = "SET SESSION sql_mode = '';"; +$db->Execute($sqlSet); /** * Get a setting from the database