2
0
mirror of https://github.com/ACSPRI/queXS synced 2024-04-02 12:12:16 +00:00

Fixed bug: queXS sample download via LimeSurvey not available with MySQL Strict Mode enabled

This commit is contained in:
Adam Zammit
2020-06-23 13:22:54 +10:00
parent cb61e5ec38
commit 255e45b4f3

View File

@@ -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