diff options
author | istruewing@chilla.local <> | 2007-02-16 12:05:57 +0100 |
---|---|---|
committer | istruewing@chilla.local <> | 2007-02-16 12:05:57 +0100 |
commit | e266bc29a4af9422e6d2f2696c7fc3b4ad045a83 (patch) | |
tree | a6e4a9a32bca67d27a794ec09a08f1479f31e473 /mysql-test | |
parent | 846e078fbbb0d3fb8cf1822dc19618d5ea85049f (diff) | |
parent | a44354e2030de340378a7d2f8c9edcd6c4ff9baf (diff) | |
download | mariadb-git-e266bc29a4af9422e6d2f2696c7fc3b4ad045a83.tar.gz |
Merge bk-internal.mysql.com:/home/bk/mysql-5.1
into chilla.local:/home/mydev/mysql-5.1-axmrg
Diffstat (limited to 'mysql-test')
-rw-r--r-- | mysql-test/r/keywords.result | 13 | ||||
-rw-r--r-- | mysql-test/t/keywords.test | 22 |
2 files changed, 35 insertions, 0 deletions
diff --git a/mysql-test/r/keywords.result b/mysql-test/r/keywords.result index 597983dab7e..e4c83b21138 100644 --- a/mysql-test/r/keywords.result +++ b/mysql-test/r/keywords.result @@ -16,6 +16,19 @@ select events.binlog from events; binlog 1 drop table events; +create table t1 (connection int, b int); +create procedure p1() +begin +declare connection int; +select max(t1.connection) into connection from t1; +select concat("max=",connection) 'p1'; +end| +insert into t1 (connection) values (1); +call p1(); +p1 +max=1 +drop procedure p1; +drop table t1; create procedure p1() begin declare n int default 2; diff --git a/mysql-test/t/keywords.test b/mysql-test/t/keywords.test index 1af4a1354be..afc7fb55d51 100644 --- a/mysql-test/t/keywords.test +++ b/mysql-test/t/keywords.test @@ -20,6 +20,28 @@ drop table events; # End of 4.1 tests + +# +# Bug#12204 - CONNECTION should not be a reserved word +# + +create table t1 (connection int, b int); +delimiter |; +create procedure p1() +begin + declare connection int; + select max(t1.connection) into connection from t1; + select concat("max=",connection) 'p1'; +end| +delimiter ;| +insert into t1 (connection) values (1); +call p1(); +drop procedure p1; +drop table t1; + + +# End of 5.0 tests + # # Bug#19939 "AUTHORS is not a keyword" # |