mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge tag 'mariadb-10.0.23' into 10.0-galera
This commit is contained in:
@ -3183,13 +3183,14 @@ static void check_duplicate_key(THD *thd,
|
||||
|
||||
// Report a warning if we have two identical keys.
|
||||
|
||||
DBUG_ASSERT(thd->lex->query_tables->alias);
|
||||
if (all_columns_are_identical)
|
||||
{
|
||||
push_warning_printf(thd, Sql_condition::WARN_LEVEL_NOTE,
|
||||
ER_DUP_INDEX, ER(ER_DUP_INDEX),
|
||||
key_info->name,
|
||||
thd->lex->query_tables->db,
|
||||
thd->lex->query_tables->table_name);
|
||||
thd->lex->query_tables->alias);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -3326,9 +3327,10 @@ mysql_prepare_create_table(THD *thd, HA_CREATE_INFO *create_info,
|
||||
sql_field->interval_list);
|
||||
List_iterator<String> int_it(sql_field->interval_list);
|
||||
String conv, *tmp;
|
||||
char comma_buf[4]; /* 4 bytes for utf32 */
|
||||
char comma_buf[5]; /* 5 bytes for 'filename' charset */
|
||||
DBUG_ASSERT(sizeof(comma_buf) >= cs->mbmaxlen);
|
||||
int comma_length= cs->cset->wc_mb(cs, ',', (uchar*) comma_buf,
|
||||
(uchar*) comma_buf +
|
||||
(uchar*) comma_buf +
|
||||
sizeof(comma_buf));
|
||||
DBUG_ASSERT(comma_length > 0);
|
||||
for (uint i= 0; (tmp= int_it++); i++)
|
||||
@ -4650,8 +4652,8 @@ int create_table_impl(THD *thd,
|
||||
bool frm_only= create_table_mode == C_ALTER_TABLE_FRM_ONLY;
|
||||
bool internal_tmp_table= create_table_mode == C_ALTER_TABLE || frm_only;
|
||||
DBUG_ENTER("mysql_create_table_no_lock");
|
||||
DBUG_PRINT("enter", ("db: '%s' table: '%s' tmp: %d",
|
||||
db, table_name, internal_tmp_table));
|
||||
DBUG_PRINT("enter", ("db: '%s' table: '%s' tmp: %d path: %s",
|
||||
db, table_name, internal_tmp_table, path));
|
||||
|
||||
if (thd->variables.sql_mode & MODE_NO_DIR_IN_CREATE)
|
||||
{
|
||||
|
Reference in New Issue
Block a user