diff options
author | Michael Widenius <monty@askmonty.org> | 2013-03-14 18:39:22 +0200 |
---|---|---|
committer | Michael Widenius <monty@askmonty.org> | 2013-03-14 18:39:22 +0200 |
commit | de5d2550af51593513e3770f109380dcf85979ef (patch) | |
tree | 5e78e34b2776926210397f1d4bb2da4b8d0e64aa /mysql-test/t/keywords.test | |
parent | b0f5c4dbe1df0caf4b5ca1216000f1f87553ad4c (diff) | |
download | mariadb-git-de5d2550af51593513e3770f109380dcf85979ef.tar.gz |
OPTION is now a valid identifier (not a reserved word)
mysql-test/r/keywords.result:
Test that option works as table/column/variable
mysql-test/suite/funcs_1/r/storedproc.result:
OPTION is now a valid identifier
mysql-test/suite/funcs_1/t/storedproc.test:
OPTION is now a valid identifier
mysql-test/t/keywords.test:
Test that option works as table/column/variable
sql/sql_yacc.yy:
OPTION is now a valid identifier
Diffstat (limited to 'mysql-test/t/keywords.test')
-rw-r--r-- | mysql-test/t/keywords.test | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/mysql-test/t/keywords.test b/mysql-test/t/keywords.test index 08016313ca7..6717cb44fbf 100644 --- a/mysql-test/t/keywords.test +++ b/mysql-test/t/keywords.test @@ -162,3 +162,14 @@ call p2(); DROP PROCEDURE p1; DROP PROCEDURE p2; DROP TABLE t1; + +# +# OPTION is not anymore a keyword +# + +create table option (option int not null); +drop table option; +--error 1064 +set option=1; +--error 1193 +set option option=1; |