mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 04:53:01 +01:00
Merge sgluhov@bk-internal.mysql.com:/home/bk/mysql-5.0
into gluh.mysql.r18.ru:/home/gluh/MySQL-MERGE/mysql-5.0
This commit is contained in:
commit
533d218738
1 changed files with 5 additions and 1 deletions
|
@ -4037,7 +4037,11 @@ create_index(
|
|||
col_type = get_innobase_type_from_mysql_type(key_part->field);
|
||||
|
||||
if (DATA_BLOB == col_type
|
||||
|| key_part->length < field->pack_length()) {
|
||||
|| (key_part->length < field->pack_length()
|
||||
&& field->type() != MYSQL_TYPE_VARCHAR)
|
||||
|| (field->type() == MYSQL_TYPE_VARCHAR
|
||||
&& key_part->length < field->pack_length()
|
||||
- ((Field_varstring*)field)->length_bytes)) {
|
||||
|
||||
prefix_len = key_part->length;
|
||||
|
||||
|
|
Loading…
Reference in a new issue