mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
fixed Bug #2985
"Table truncated when creating another table name with Spaces" added to check_db_name, check_table_name and check_column_name test for end space
This commit is contained in:
@ -216,3 +216,9 @@ a b
|
||||
0 2
|
||||
3 4
|
||||
drop table t1;
|
||||
create table `t1 `(a int);
|
||||
Incorrect table name 't1 '
|
||||
create database `db1 `;
|
||||
Incorrect database name 'db1 '
|
||||
create table t1(`a ` int);
|
||||
Incorrect column name 'a '
|
||||
|
@ -179,3 +179,15 @@ create table if not exists t1 select 3 as 'a',4 as 'b';
|
||||
create table if not exists t1 select 3 as 'a',3 as 'b';
|
||||
select * from t1;
|
||||
drop table t1;
|
||||
|
||||
#
|
||||
# Test for Bug #2985
|
||||
# "Table truncated when creating another table name with Spaces"
|
||||
#
|
||||
|
||||
--error 1103
|
||||
create table `t1 `(a int);
|
||||
--error 1102
|
||||
create database `db1 `;
|
||||
--error 1166;
|
||||
create table t1(`a ` int);
|
||||
|
Reference in New Issue
Block a user