summaryrefslogtreecommitdiff
path: root/mysql-test/t/create.test
diff options
context:
space:
mode:
authorunknown <antony@ltantony.dsl-verizon.net>2004-04-28 16:14:53 +0100
committerunknown <antony@ltantony.dsl-verizon.net>2004-04-28 16:14:53 +0100
commit0d07fe42c3a825e21d74f3db8efe4af1dba32f5b (patch)
tree6c92d4845efa916dd3e9c67a7bd1465826848af5 /mysql-test/t/create.test
parentd1214e2c5d17ca397588bbd1ed5de12c8396459f (diff)
downloadmariadb-git-0d07fe42c3a825e21d74f3db8efe4af1dba32f5b.tar.gz
Fix for Bug 3481
CREATE statement allowed extra unnecessary commas mysql-test/r/alias.result: Extra comma removed in CREATE statement mysql-test/r/create.result: New test for Bug 3481 mysql-test/r/func_str.result: Extra comma removed in CREATE statement mysql-test/r/rpl_multi_update.result: Extra comma removed in CREATE statement mysql-test/t/alias.test: Extra comma removed in CREATE statement mysql-test/t/create.test: New test for bug 3481 mysql-test/t/func_str.test: Extra comma removed in CREATE statement mysql-test/t/rpl_multi_update.test: Extra comma removed in CREATE statement sql/sql_yacc.yy: Fix for bug 3481 No path through the grammar which has no clauses BitKeeper/etc/logging_ok: Logging to logging@openlogging.org accepted
Diffstat (limited to 'mysql-test/t/create.test')
-rw-r--r--mysql-test/t/create.test12
1 files changed, 12 insertions, 0 deletions
diff --git a/mysql-test/t/create.test b/mysql-test/t/create.test
index 94c2f24dffc..c71a1e0c177 100644
--- a/mysql-test/t/create.test
+++ b/mysql-test/t/create.test
@@ -191,3 +191,15 @@ create table `t1 `(a int);
create database `db1 `;
--error 1166;
create table t1(`a ` int);
+
+#
+# Test for Bug #3481
+# "Parser permits multiple commas without syntax error"
+#
+
+--error 1064
+create table t1 (a int,);
+--error 1064
+create table t1 (a int,,b int);
+--error 1064
+create table t1 (,b int);