mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
BUG#18750: Various problems with partition names, quotation marks
mysql-test/r/partition.result: Added new test cases mysql-test/t/partition.test: Added new test cases sql/partition_info.cc: Check partition names that they don't have trailing spaces sql/share/errmsg.txt: Added error code for wrong partition names sql/sql_partition.cc: New method to add partition name strings, ignore OPTION_SHOW_QUOTE_CREATE sql/sql_show.cc: require_quotes had a bug with identifiers that consisted of only digits, these are allowed identifiers but must be quoted and require_quote didn't tell this. sql/sql_yacc.yy: Partition names should identifers and not ident_or_text
This commit is contained in:
@@ -956,4 +956,28 @@ PARTITION p2 VALUES LESS THAN (30) ENGINE = MyISAM);
|
||||
SHOW TABLE STATUS;
|
||||
DROP TABLE t1;
|
||||
|
||||
#
|
||||
#BUG 18750 Problems with partition names
|
||||
#
|
||||
create table t1 (a int)
|
||||
partition by list (a)
|
||||
(partition `s1 s2` values in (0));
|
||||
drop table t1;
|
||||
|
||||
create table t1 (a int)
|
||||
partition by list (a)
|
||||
(partition `7` values in (0));
|
||||
drop table t1;
|
||||
|
||||
--error ER_WRONG_PARTITION_NAME
|
||||
create table t1 (a int)
|
||||
partition by list (a)
|
||||
(partition `s1 s2 ` values in (0));
|
||||
|
||||
--error ER_WRONG_PARTITION_NAME
|
||||
create table t1 (a int)
|
||||
partition by list (a)
|
||||
subpartition by hash (a)
|
||||
(partition p1 values in (0) (subpartition `p1 p2 `));
|
||||
|
||||
--echo End of 5.1 tests
|
||||
|
Reference in New Issue
Block a user