Skip to content
Snippets Groups Projects

3261236: Use explicit SQL modes instead of ANSI and TRADITIONAL.

Open Ben Holt requested to merge issue/drupal-3261236:3261236-explicit-sql-modes into 9.4.x
1 unresolved thread
1 file
+ 4
1
Compare changes
  • Side-by-side
  • Inline
@@ -222,7 +222,10 @@ public static function open(array &$connection_options = []) {
];
$connection_options['init_commands'] += [
'sql_mode' => "SET sql_mode = 'ANSI,TRADITIONAL'",
    • Could we add a comment with that we used sql_mode "ANSI,TRADITIONAL", only that we changed it because of differences between MySQL and MariaDB.

Please register or sign in to reply
'sql_mode' => "SET sql_mode = 'REAL_AS_FLOAT,PIPES_AS_CONCAT,ANSI_QUOTES,"
. "IGNORE_SPACE,ONLY_FULL_GROUP_BY,STRICT_TRANS_TABLES,STRICT_ALL_TABLES,"
. "NO_ZERO_IN_DATE,NO_ZERO_DATE,ERROR_FOR_DIVISION_BY_ZERO,"
. "NO_ENGINE_SUBSTITUTION'",
];
// Execute initial commands.
Loading