mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
Merge branch '10.0' 10.1
This commit is contained in:
@ -3233,6 +3233,21 @@ mysql_prepare_create_table(THD *thd, HA_CREATE_INFO *create_info,
|
||||
bool tmp_table= create_table_mode == C_ALTER_TABLE;
|
||||
DBUG_ENTER("mysql_prepare_create_table");
|
||||
|
||||
LEX_STRING* connect_string = &create_info->connect_string;
|
||||
if (connect_string->length != 0 &&
|
||||
connect_string->length > CONNECT_STRING_MAXLEN &&
|
||||
(system_charset_info->cset->charpos(system_charset_info,
|
||||
connect_string->str,
|
||||
(connect_string->str +
|
||||
connect_string->length),
|
||||
CONNECT_STRING_MAXLEN)
|
||||
< connect_string->length))
|
||||
{
|
||||
my_error(ER_WRONG_STRING_LENGTH, MYF(0),
|
||||
connect_string->str, "CONNECTION", CONNECT_STRING_MAXLEN);
|
||||
DBUG_RETURN(TRUE);
|
||||
}
|
||||
|
||||
select_field_pos= alter_info->create_list.elements - select_field_count;
|
||||
null_fields=blob_columns=0;
|
||||
create_info->varchar= 0;
|
||||
|
Reference in New Issue
Block a user