From 143c6a1de818d54beb27bb7870fae7fede03ab07 Mon Sep 17 00:00:00 2001 From: Sergey Biryukov Date: Tue, 4 Feb 2020 01:14:07 +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. Built from https://develop.svn.wordpress.org/trunk@47171 git-svn-id: http://core.svn.wordpress.org/trunk@46971 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-includes/version.php | 2 +- wp-includes/wp-db.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/wp-includes/version.php b/wp-includes/version.php index abbf5eda59..726d53b031 100644 --- a/wp-includes/version.php +++ b/wp-includes/version.php @@ -13,7 +13,7 @@ * * @global string $wp_version */ -$wp_version = '5.4-alpha-47170'; +$wp_version = '5.4-alpha-47171'; /** * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema. diff --git a/wp-includes/wp-db.php b/wp-includes/wp-db.php index 66897a05b2..0298e20569 100644 --- a/wp-includes/wp-db.php +++ b/wp-includes/wp-db.php @@ -568,6 +568,7 @@ class wpdb { 'STRICT_TRANS_TABLES', 'STRICT_ALL_TABLES', 'TRADITIONAL', + 'ANSI', ); /**