1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-31 22:22:30 +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:
pem@mysql.comhem.se
2004-01-08 09:27:29 +01:00
parent f9e2c6cd27
commit 4975595660
3 changed files with 44 additions and 9 deletions

View File

@@ -283,4 +283,13 @@ create table t3 (column_1 int)|
call bug1653()|
drop procedure bug1653|
drop table t3|
create procedure bug2272()
begin
declare v int;
update t1 set v = 42;
end|
insert into t1 values (666, 51.3)|
call bug2272()|
ERROR 42S22: Unknown column 'v' in 'field list'
delete from t1|
drop table t1|