summaryrefslogtreecommitdiff
path: root/mysql-test/r/sp-error.result
diff options
context:
space:
mode:
authorpem@mysql.comhem.se <>2004-01-08 09:27:29 +0100
committerpem@mysql.comhem.se <>2004-01-08 09:27:29 +0100
commit4975595660ce132a7b81a2fa39fc83c81a25fcea (patch)
treee33db53c3a4c2445a62dfedb86c6a2598018fa0a /mysql-test/r/sp-error.result
parentf9e2c6cd27268e72198bde3c1a71eb1273df335a (diff)
downloadmariadb-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.result9
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|