mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
Fix BUG#2272: Crash if update with variable name in stored procedure.
Parse column names (and not variables) only in UPDATE ... SET ...
This commit is contained in:
@@ -388,6 +388,20 @@ call bug1653()|
|
||||
drop procedure bug1653|
|
||||
drop table t3|
|
||||
|
||||
#
|
||||
# BUG#2272
|
||||
#
|
||||
create procedure bug2272()
|
||||
begin
|
||||
declare v int;
|
||||
|
||||
update t1 set v = 42;
|
||||
end|
|
||||
|
||||
insert into t1 values (666, 51.3)|
|
||||
--error 1054
|
||||
call bug2272()|
|
||||
delete from t1|
|
||||
|
||||
drop table t1|
|
||||
|
||||
|
||||
Reference in New Issue
Block a user