From 255e45b4f3339810e066f66dd96d2f5a1caa9132 Mon Sep 17 00:00:00 2001 From: Adam Zammit Date: Tue, 23 Jun 2020 13:22:54 +1000 Subject: [PATCH] Fixed bug: queXS sample download via LimeSurvey not available with MySQL Strict Mode enabled --- include/limesurvey/common.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/include/limesurvey/common.php b/include/limesurvey/common.php index 206be404..57abc834 100644 --- a/include/limesurvey/common.php +++ b/include/limesurvey/common.php @@ -220,6 +220,9 @@ if ($databasetype=='mysql' || $databasetype=='mysqli') { } @$connect->Execute("SET CHARACTER SET 'utf8'"); //Checked @$connect->Execute("SET NAMES 'utf8'"); //Checked + //make sure sql_mode is right for queXS + $sqlSet = "SET SESSION sql_mode = '';"; + @$connect->Execute($sqlSet); } // Setting dateformat for mssql driver. It seems if you don't do that the in- and output format could be different