From b26b0ccf8cfc044efbf0087dd68575b6cfb6570d Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 4 Feb 2020 01:12:53 +0000 Subject: [PATCH] Database: Add `ANSI` to the list of incompatible SQL modes. Starting with MySQL 5.7.5, the `ANSI` mode implies `ONLY_FULL_GROUP_BY`, which is already listed in `wpdb` as incompatible per [27072]. When `ANSI` is enabled on MySQL 5.7.5+, `ONLY_FULL_GROUP_BY` remains enabled even after being "unset" by `wpdb::set_sql_mode()`. To prevent this, the `ANSI` mode should also be listed as incompatible. It is not enabled on default MySQL installations. Props jnylen0. Fixes #48377. git-svn-id: https://develop.svn.wordpress.org/trunk@47171 602fd350-edb4-49c9-b593-d223f7449a82 --- src/wp-includes/wp-db.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/wp-includes/wp-db.php b/src/wp-includes/wp-db.php index 66897a05b2..0298e20569 100644 --- a/src/wp-includes/wp-db.php +++ b/src/wp-includes/wp-db.php @@ -568,6 +568,7 @@ class wpdb { 'STRICT_TRANS_TABLES', 'STRICT_ALL_TABLES', 'TRADITIONAL', + 'ANSI', ); /**