DBZ-7152 Allow singleUpdateStatement to use tableSources clause instead of only table name

This commit is contained in:
ani-sha 2023-11-27 13:21:57 +05:30 committed by Jiri Pechanec
parent fe0b83e7fb
commit 05b34846a0
2 changed files with 11 additions and 1 deletions

View File

@ -1046,7 +1046,7 @@ handlerCloseStatement
;
singleUpdateStatement
: UPDATE priority=LOW_PRIORITY? IGNORE? tableName (AS? uid)?
: UPDATE priority=LOW_PRIORITY? IGNORE? tableSources (AS? uid)?
SET updatedElement (',' updatedElement)*
(WHERE expression)? orderByClause? limitClause?
;

View File

@ -719,3 +719,13 @@ SELECT
,@N_latin;
END
#end
#begin
CREATE PROCEDURE TEST_UPDATE()
BEGIN
UPDATE TEST_AUTO_INC AI
JOIN TEST_JOIN_LIMIT JL ON JL.ID = AI.ID
SET AI.COL_1 = NULL
LIMIT 500;
END
#end