diff options
author | pem@mysql.comhem.se <> | 2004-01-08 09:27:29 +0100 |
---|---|---|
committer | pem@mysql.comhem.se <> | 2004-01-08 09:27:29 +0100 |
commit | 4975595660ce132a7b81a2fa39fc83c81a25fcea (patch) | |
tree | e33db53c3a4c2445a62dfedb86c6a2598018fa0a /mysql-test/r/sp-error.result | |
parent | f9e2c6cd27268e72198bde3c1a71eb1273df335a (diff) | |
download | mariadb-git-4975595660ce132a7b81a2fa39fc83c81a25fcea.tar.gz |
Fix BUG#2272: Crash if update with variable name in stored procedure.
Parse column names (and not variables) only in UPDATE ... SET ...
Diffstat (limited to 'mysql-test/r/sp-error.result')
-rw-r--r-- | mysql-test/r/sp-error.result | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/r/sp-error.result b/mysql-test/r/sp-error.result index 748fda6c4ec..c2b8460d615 100644 --- a/mysql-test/r/sp-error.result +++ b/mysql-test/r/sp-error.result @@ -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| |