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

fixed bug #2592 mysqldump doesn't quote "tricky" names correctly

This commit is contained in:
vva@eagle.mysql.r18.ru
2004-02-07 02:22:12 +04:00
parent d4d097689b
commit cc1ff3c479
4 changed files with 47 additions and 13 deletions

View File

@ -649,7 +649,7 @@ static char *quote_name(const char *name, char *buff, my_bool force)
while (*name)
{
if (*name == QUOTE_CHAR)
*to= QUOTE_CHAR;
*to++= QUOTE_CHAR;
*to++= *name++;
}
to[0]=QUOTE_CHAR;
@ -1647,7 +1647,7 @@ static int dump_all_tables_in_db(char *database)
if (opt_xml)
fputs("</database>\n", md_result_file);
if (lock_tables)
mysql_query(sock,"UNLOCK_TABLES");
mysql_query(sock,"UNLOCK TABLES");
return 0;
} /* dump_all_tables_in_db */