mirror of
https://github.com/MariaDB/server.git
synced 2025-01-21 06:22:28 +01:00
cfae755d7d
1. BUG#46000 - using index called GEN_CLUST_INDEX crashes server Detailed revision comments: r5895 | jyang | 2009-09-15 03:39:21 +0300 (Tue, 15 Sep 2009) | 5 lines branches/5.1: Disallow creating index with the name of "GEN_CLUST_INDEX" which is reserved for the default system primary index. (Bug #46000) rb://149 approved by Marko Makela.
17 lines
895 B
Text
17 lines
895 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 errors;
|
|
Level Code Message
|
|
Error 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 errors;
|
|
Level Code Message
|
|
Error 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;
|