-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Prefix indexes are specified in characters while this error message returns a limit in bytes. By adding the byte length in the message this is makes it easier to understand. This would deviate a little bit from the message in MySQL. Before: ``` sql> CREATE TABLE t1(id int primary key, c1 text, key(c1(1000))); ERROR: 1071 (42000): Specified key was too long; max key length is 3072 bytes ``` After: ``` sql> CREATE TABLE t1(id int primary key, c1 text, key(c1(1000))); ERROR: 1071 (42000): Specified key was too long (4000 bytes); max key length is 3072 bytes ```
- Loading branch information
Showing
5 changed files
with
8 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters