mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
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.
This commit is contained in:
committed by
Sergei Golubchik
parent
355ee6877b
commit
d943d7f712
@ -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 '';
|
||||
|
||||
|
Reference in New Issue
Block a user