Skip to content

Commit

Permalink
Dev Removed ANSI mode because it can create problems when database du…
Browse files Browse the repository at this point in the history
…mps are created from within LimeSurvey while debug mode is activated
  • Loading branch information
c-schmitz committed Aug 19, 2021
1 parent 37e0e5d commit d88581d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/core/db/DbConnection.php
Expand Up @@ -25,7 +25,7 @@ protected function initConnection($pdo)
if (in_array($driver, array('mysql', 'mysqli'))) {
$pdo->exec("SET collation_connection='utf8mb4_unicode_ci'");
if (Yii::app()->getConfig('debug') > 1) {
$pdo->exec("SET SESSION SQL_MODE='STRICT_ALL_TABLES,ANSI,ONLY_FULL_GROUP_BY'");
$pdo->exec("SET SESSION SQL_MODE='STRICT_ALL_TABLES,IGNORE_SPACE,ONLY_FULL_GROUP_BY'");
}
}
}
Expand Down

0 comments on commit d88581d

Please sign in to comment.