mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
In CREATE syntax: KEY a (field_name(10))
10 now means "number of characters", not number of bytes.
This commit is contained in:
@ -1214,7 +1214,9 @@ store_create_info(THD *thd, TABLE *table, String *packet)
|
||||
!(key_info->flags & HA_FULLTEXT)))
|
||||
{
|
||||
buff[0] = '(';
|
||||
char* end=int10_to_str((long) key_part->length, buff + 1,10);
|
||||
char* end=int10_to_str((long) key_part->length /
|
||||
key_part->field->charset()->mbmaxlen,
|
||||
buff + 1,10);
|
||||
*end++ = ')';
|
||||
packet->append(buff,(uint) (end-buff));
|
||||
}
|
||||
|
Reference in New Issue
Block a user