mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 15:45:33 +02:00
fix a mysql-5.5.50 merge: mysqlcheck
quote identifiers correctly
This commit is contained in:
parent
95bf696d2c
commit
a482e76e65
3 changed files with 12 additions and 2 deletions
|
|
@ -756,7 +756,7 @@ static int fix_table_storage_name(const char *name)
|
|||
|
||||
if (strncmp(name, "#mysql50#", 9))
|
||||
DBUG_RETURN(1);
|
||||
my_snprintf(qbuf, sizeof(qbuf), "RENAME TABLE `%s` TO `%s`",
|
||||
my_snprintf(qbuf, sizeof(qbuf), "RENAME TABLE %`s TO %`s",
|
||||
name, name + 9);
|
||||
|
||||
rc= run_query(qbuf);
|
||||
|
|
@ -773,7 +773,7 @@ static int fix_database_storage_name(const char *name)
|
|||
|
||||
if (strncmp(name, "#mysql50#", 9))
|
||||
DBUG_RETURN(1);
|
||||
my_snprintf(qbuf, sizeof(qbuf), "ALTER DATABASE `%s` UPGRADE DATA DIRECTORY "
|
||||
my_snprintf(qbuf, sizeof(qbuf), "ALTER DATABASE %`s UPGRADE DATA DIRECTORY "
|
||||
"NAME", name);
|
||||
rc= run_query(qbuf);
|
||||
if (verbose)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue