summaryrefslogtreecommitdiff
path: root/scripts/mysql_system_tables_fix.sql
diff options
context:
space:
mode:
authorJerome Brauge <j.brauge@qualiac.com>2018-01-29 16:53:39 +0100
committerSergei Golubchik <serg@mariadb.org>2018-02-12 13:14:23 +0100
commitd943d7f712a48073f0e3936b19557a1762e9f5a8 (patch)
tree4d2ed8128831e8fe131805e4789394c5ed37f117 /scripts/mysql_system_tables_fix.sql
parent355ee6877beccf27bcd07d845c985fc1a2845aca (diff)
downloadmariadb-git-d943d7f712a48073f0e3936b19557a1762e9f5a8.tar.gz
MDEV-13417 UPDATE produces wrong values if an updated column is later used as an update source
Standard compatible behavior for UPDATE: all assignments in SET are executed "simultaneously", not left-to-right. And `SET a=b,b=a` will swap the values.
Diffstat (limited to 'scripts/mysql_system_tables_fix.sql')
-rw-r--r--scripts/mysql_system_tables_fix.sql6
1 files changed, 4 insertions, 2 deletions
diff --git a/scripts/mysql_system_tables_fix.sql b/scripts/mysql_system_tables_fix.sql
index 39277f8975c..a835a164f22 100644
--- a/scripts/mysql_system_tables_fix.sql
+++ b/scripts/mysql_system_tables_fix.sql
@@ -449,7 +449,8 @@ ALTER TABLE proc MODIFY name char(64) DEFAULT '' NOT NULL,
'HIGH_NOT_PRECEDENCE',
'NO_ENGINE_SUBSTITUTION',
'PAD_CHAR_TO_FULL_LENGTH',
- 'EMPTY_STRING_IS_NULL'
+ 'EMPTY_STRING_IS_NULL',
+ 'SIMULTANEOUS_ASSIGNMENT'
) DEFAULT '' NOT NULL,
DEFAULT CHARACTER SET utf8;
@@ -578,7 +579,8 @@ ALTER TABLE event MODIFY sql_mode
'HIGH_NOT_PRECEDENCE',
'NO_ENGINE_SUBSTITUTION',
'PAD_CHAR_TO_FULL_LENGTH',
- 'EMPTY_STRING_IS_NULL'
+ 'EMPTY_STRING_IS_NULL',
+ 'SIMULTANEOUS_ASSIGNMENT'
) DEFAULT '' NOT NULL AFTER on_completion;
ALTER TABLE event MODIFY name char(64) CHARACTER SET utf8 NOT NULL default '';