Bug #11657 Creation of secondary index fails
Submitted: 30 Jun 2005 9:48 Modified: 7 Jul 2005 16:47
Reporter: Georg Richter Email Updates:
Status: Closed Impact on me:
None 
Category:MySQL Server Severity:S1 (Critical)
Version:5.0.9-beta OS:Linux (Linux)
Assigned to: Alexander Barkov CPU Architecture:Any

[30 Jun 2005 9:48] Georg Richter
Description:
When a primary index contains a blob field, creation of secondary index fails with errormsg "BLOB/TEXT column used in key specification without keylength, even if the secondary index doesn't contain a blob field

How to repeat:
create table my1 (a int, b int, c tinyblob, d int, e int);
alter table my1 add primary key (a,b,c(255),d);
alter table my1 add key (a,b,d,e);

ERROR 1170 (42000): BLOB/TEXT column 'c' used in key specification without a key length
5.0.9-beta-debug-log
[30 Jun 2005 10:25] Andrey Hristov
Used to work with 5.0.6
[1 Jul 2005 10:08] Bugs System
A patch for this bug has been committed. After review, it may
be pushed to the relevant source trees for release in the next
version. You can access the patch from:

  http://lists.mysql.com/internals/26582
[1 Jul 2005 10:50] Alexander Barkov
Fixed in 5.0.9.
Reviewed by Ramil.
[7 Jul 2005 16:47] Jon Stephens
Thank you for your bug report. This issue has been committed to our
source repository of that product and will be incorporated into the
next release.

If necessary, you can access the source repository and build the latest
available version, including the bugfix, yourself. More information 
about accessing the source trees is available at
    http://www.mysql.com/doc/en/Installing_source_tree.html

Additional info:

Bugfix documented in 5.0.9 change history; closed.