1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

BUG#13835: max key length is 1000 bytes when trying to create a fulltext index

Allow fulltext index on VARCHAR columns longer than max key length.
This commit is contained in:
svoj@april.(none)
2006-01-13 21:25:12 +04:00
parent 0e2fac2d8c
commit 5581ef960a
3 changed files with 17 additions and 1 deletions

View File

@ -1296,7 +1296,7 @@ static int mysql_prepare_table(THD *thd, HA_CREATE_INFO *create_info,
my_error(ER_WRONG_KEY_COLUMN, MYF(0), column->field_name);
DBUG_RETURN(-1);
}
if (length > file->max_key_part_length())
if (length > file->max_key_part_length() && key->type != Key::FULLTEXT)
{
length=file->max_key_part_length();
if (key->type == Key::MULTIPLE)