1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-13089 identifier quoting in partitioning

cover ALTER TABLE
This commit is contained in:
Sergei Golubchik
2018-09-21 20:16:36 +02:00
parent e4b466aa3d
commit e7d152293d
6 changed files with 28 additions and 25 deletions

View File

@ -2219,6 +2219,18 @@ static int add_key_with_algorithm(String *str, partition_info *part_info)
return err;
}
char *generate_partition_syntax_for_frm(THD *thd, partition_info *part_info,
uint *buf_length,
HA_CREATE_INFO *create_info,
Alter_info *alter_info)
{
sql_mode_t old_mode= thd->variables.sql_mode;
thd->variables.sql_mode &= ~MODE_ANSI_QUOTES;
char *res= generate_partition_syntax(thd, part_info, buf_length,
true, create_info, alter_info);
thd->variables.sql_mode= old_mode;
return res;
}
/*
Generate the partition syntax from the partition data structure.