1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +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:
unknown
2003-09-15 14:45:42 +05:00
parent e0c70de4c8
commit faf5df672d
4 changed files with 51 additions and 3 deletions

View File

@@ -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));
}