mirror of
https://github.com/MariaDB/server.git
synced 2025-01-19 05:22:25 +01:00
e2afa05e2a
BUG#46000 - using index called GEN_CLUST_INDEX crashes server Detailed revision comments: r6180 | jyang | 2009-11-17 10:54:57 +0200 (Tue, 17 Nov 2009) | 7 lines branches/5.0: Merge/Port fix for bug #46000 from branches/5.1 -r5895 to branches/5.0. Disallow creating index with the name of "GEN_CLUST_INDEX" which is reserved for the default system primary index. Minor adjusts on table name screening format for added tests.
17 lines
903 B
Text
17 lines
903 B
Text
create table bug46000(`id` int,key `GEN_CLUST_INDEX`(`id`))engine=innodb;
|
|
ERROR HY000: Can't create table 'test.bug46000' (errno: -1)
|
|
create table bug46000(`id` int, key `GEN_clust_INDEX`(`id`))engine=innodb;
|
|
ERROR HY000: Can't create table 'test.bug46000' (errno: -1)
|
|
show warnings;
|
|
Level Code Message
|
|
Warning 1005 Cannot Create Index with name 'GEN_CLUST_INDEX'. The name is reserved for the system default primary index.
|
|
Error 1005 Can't create table 'test.bug46000' (errno: -1)
|
|
create table bug46000(id int) engine=innodb;
|
|
create index GEN_CLUST_INDEX on bug46000(id);
|
|
ERROR HY000: Can't create table '#sql-temporary' (errno: -1)
|
|
show warnings;
|
|
Level Code Message
|
|
Warning 1005 Cannot Create Index with name 'GEN_CLUST_INDEX'. The name is reserved for the system default primary index.
|
|
Error 1005 Can't create table '#sql-temporary' (errno: -1)
|
|
create index idx on bug46000(id);
|
|
drop table bug46000;
|