Bug #71403 | ERROR 1167 (42000): The used storage engine can't index column on [VAR]CHAR(0) | ||
---|---|---|---|
Submitted: | 17 Jan 2014 0:46 | Modified: | 20 Jan 2014 7:01 |
Reporter: | Roel Van de Paar | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: DML | Severity: | S3 (Non-critical) |
Version: | 5.6 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[17 Jan 2014 0:46]
Roel Van de Paar
[17 Jan 2014 0:47]
Roel Van de Paar
This causes a lot of RQG errors due to random (x) insertions. Off course it could be avoided in the grammar, but that would reduce crash testing boundary value coverage.
[17 Jan 2014 5:05]
MySQL Verification Team
Hello Roel, Thank you for the report and test case. Verified as described. Thanks, Umesh
[17 Jan 2014 10:04]
Øystein Grøvlen
This is equivalent behavior to when creating tables: mysql> create table t1 (c1 char(0)) engine=innodb; Query OK, 0 rows affected (0.26 sec) mysql> create table t1 (c1 char(0) primary key) engine=innodb; ERROR 1167 (42000): The used storage engine can't index column 'c1' The manual contains a paragraph on why CHAR(0) is allowed. (See http://dev.mysql.com/doc/refman/5.7/en/string-type-overview.html) It is not obvious to me that one should be able to create indexes on all types supported. Hence, closing this as not a bug.
[20 Jan 2014 7:01]
Roel Van de Paar
Øystein, agree. Thanks