mirror of
https://github.com/MariaDB/server.git
synced 2025-06-13 13:01:51 +03:00
Bug#20616: drop_temp_table test fails on Windows platform
This commit is contained in:
@ -1656,8 +1656,23 @@ bool mysql_create_table(THD *thd,const char *db, const char *table_name,
|
||||
my_casedn_str(files_charset_info, path);
|
||||
create_info->table_options|=HA_CREATE_DELAY_KEY_WRITE;
|
||||
}
|
||||
else
|
||||
else
|
||||
{
|
||||
#ifdef FN_DEVCHAR
|
||||
/* check if the table name contains FN_DEVCHAR when defined */
|
||||
const char *start= alias;
|
||||
while (*start != '\0')
|
||||
{
|
||||
if (*start == FN_DEVCHAR)
|
||||
{
|
||||
my_error(ER_WRONG_TABLE_NAME, MYF(0), alias);
|
||||
DBUG_RETURN(TRUE);
|
||||
}
|
||||
start++;
|
||||
}
|
||||
#endif
|
||||
build_table_path(path, sizeof(path), db, alias, reg_ext);
|
||||
}
|
||||
|
||||
/* Check if table already exists */
|
||||
if ((create_info->options & HA_LEX_CREATE_TMP_TABLE)
|
||||
|
Reference in New Issue
Block a user