summaryrefslogtreecommitdiff
path: root/mysql-test/t/keywords.test
diff options
context:
space:
mode:
authorunknown <antony@ppcg5.local>2007-02-07 14:22:19 -0800
committerunknown <antony@ppcg5.local>2007-02-07 14:22:19 -0800
commit6a46b6d6e6a69c152efd10867f101995322d1c8f (patch)
tree4f5de8bd64e14b001ea9fa5e51b872ee8433286b /mysql-test/t/keywords.test
parent12ddb5f7c27dee26ff06931f4062263ef0e02503 (diff)
downloadmariadb-git-6a46b6d6e6a69c152efd10867f101995322d1c8f.tar.gz
Bug#12204
"CONNECTION is a reserved keyword" Allow connection to be used as an ordinary identifier Tests included. mysql-test/r/keywords.result: test that CONNECTION may be used as ordinary identifier test that CONNECTION may be used in stored procedure. mysql-test/t/keywords.test: test that CONNECTION may be used as ordinary identifier test that CONNECTION may be used in stored procedure. sql/sql_yacc.yy: Set CONNECTION as an unreserved keyword
Diffstat (limited to 'mysql-test/t/keywords.test')
-rw-r--r--mysql-test/t/keywords.test22
1 files changed, 22 insertions, 0 deletions
diff --git a/mysql-test/t/keywords.test b/mysql-test/t/keywords.test
index de0159a950e..46933a230ee 100644
--- a/mysql-test/t/keywords.test
+++ b/mysql-test/t/keywords.test
@@ -19,3 +19,25 @@ select events.binlog from events;
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