mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Give an error if you use a BLOB(X) where X > 255
Fixes for MIT pthreads
This commit is contained in:
@ -416,7 +416,8 @@ int mysql_create_table(THD *thd,const char *db, const char *table_name,
|
||||
{
|
||||
if (f_is_blob(sql_field->pack_flag))
|
||||
{
|
||||
if ((length=column->length) > file->max_key_length())
|
||||
if ((length=column->length) > file->max_key_length() ||
|
||||
length > file->max_key_part_length())
|
||||
{
|
||||
my_error(ER_WRONG_SUB_KEY,MYF(0));
|
||||
DBUG_RETURN(-1);
|
||||
|
Reference in New Issue
Block a user