DBZ-7152 Allow singleUpdateStatement to use tableSources clause instead of only table name
This commit is contained in:
parent
fe0b83e7fb
commit
05b34846a0
@ -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?
|
||||
;
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user