mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
Fix for Bug 3481
CREATE statement allowed extra unnecessary commas
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user