1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Merge remote-tracking branch 'github/bb-11.4-release' into bb-11.8-serg

This commit is contained in:
Sergei Golubchik
2025-04-27 11:33:27 +02:00
committed by Oleksandr Byelkin
430 changed files with 14769 additions and 6751 deletions

View File

@@ -3172,7 +3172,7 @@ static bool mysql_prepare_create_table_stage1(THD *thd,
DBUG_ASSERT(sql_field->charset);
if (check_column_name(sql_field->field_name.str))
if (check_column_name(sql_field->field_name))
{
my_error(ER_WRONG_COLUMN_NAME, MYF(0), sql_field->field_name.str);
DBUG_RETURN(TRUE);
@@ -3817,7 +3817,7 @@ mysql_prepare_create_table_finalize(THD *thd, HA_CREATE_INFO *create_info,
key_part_info++;
}
if (!key_info->name.str || check_column_name(key_info->name.str))
if (!key_info->name.str || check_column_name(key_info->name))
{
my_error(ER_WRONG_NAME_FOR_INDEX, MYF(0), key_info->name.str);
DBUG_RETURN(TRUE);
@@ -6372,7 +6372,7 @@ drop_create_field:
}
else if (drop->type == Alter_drop::PERIOD)
{
if (table->s->period.name.streq(drop->name))
if (table->s->period.name.streq(Lex_ident(drop->name)))
remove_drop= FALSE;
}
else /* Alter_drop::KEY and Alter_drop::FOREIGN_KEY */
@@ -9365,7 +9365,7 @@ mysql_prepare_alter_table(THD *thd, TABLE *table,
for (bool found= false; !found && (drop= drop_it++); )
{
found= drop->type == Alter_drop::PERIOD &&
table->s->period.name.streq(drop->name);
table->s->period.name.streq(Lex_ident(drop->name));
}
if (drop)
@@ -12856,6 +12856,7 @@ copy_data_between_tables(THD *thd, TABLE *from, TABLE *to,
if (alt_error > 0)
{
error= alt_error;
to->file->extra(HA_EXTRA_ABORT_ALTER_COPY);
copy_data_error_ignore(error, false, to, thd, alter_ctx);
}
}