Skip Menu |

This queue is for tickets about the CHI-Driver-DBI CPAN distribution.

Report information
The Basics
Id: 66479
Status: resolved
Priority: 0/
Queue: CHI-Driver-DBI

People
Owner: Nobody in particular
Requestors: preaction [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.23
Fixed in: 1.24



Subject: key VARCHAR( 600 ) too long for MySQL using UTF-8 charset
Trying to have CHI::Driver::DBI create its own table on a MySQL database where the default charset is UTF-8 give this error: ERROR 1071 (42000): Specified key was too long; max key length is 1000 bytes Changing the charset to Latin1 for the table makes the key length succeed: CREATE TABLE IF NOT EXISTS chi_Default ( `key` VARCHAR(600), `value` TEXT, PRIMARY KEY ( `key` ) ) CHARSET=LATIN1; I don't know if this is a bug you want to actually "fix", or if you just want to make a note of it in the docs. Probably the latter.
I've 'fixed' this by changing the column length in the auto-created table from 600 to 300, which seems to work even for utf-8. 300 still seems like a reasonable sized key and it can always be modified manually.