Bug #2130 Max key length problem
| Submitted: | 16 Dec 2003 9:55 | Modified: | 21 Feb 2004 11:37 |
|---|---|---|---|
| Reporter: | Gary Thornock | Email Updates: | |
| Status: | Closed | Impact on me: | |
| Category: | MySQL Server | Severity: | S2 (Serious) |
| Version: | 4.1.1 alpha | OS: | Linux (Linux) |
| Assigned to: | Sergei Golubchik | CPU Architecture: | Any |
[16 Dec 2003 9:55]
Gary Thornock
[3 Feb 2004 17:55]
Simon Greenhill
Same problem under windows XP. It may be interesting / useful to note that if a column is set to anything greater than 165 (VARCHAR) this error occurs, smaller than 165 & no problem.
[21 Feb 2004 11:37]
Sergei Golubchik
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:
The problem is of course that key length in MyISAM table cannot exceed 500 bytes, and as one utf8 char can take up to three bytes, it limits key length to 165 utf8 characters.
I now doubled the max allowed key length in MyISAM tables in 4.1.2
Portions of this website are copyright © 2001, 2002 The PHP Group
Page generated in 0.039 sec. using MySQL 8.4.7-u6-cloud
Timestamp references displayed by the system are UTC.
Content reproduced on this site is the property of the
respective copyright holders.
It is not reviewed in advance
by Oracle and does not necessarily represent the opinion of
Oracle or any other party.