mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Quote names to SHOW CREATE for mysqldump
Fix thread-related bug when doing DROP TABLE Fix bug in RENAME TABLE on windows Docs/manual.texi: Changelog client/mysqldump.c: Quote names to SHOW CREATE mysql-test/t/range.test: Test case for range bug sql/lock.cc: Fix thread-related bug when doing DROP TABLE sql/sql_base.cc: Fix thread-related bug when doing DROP TABLE sql/sql_rename.cc: Fix bug in RENAME TABLE on windows
This commit is contained in:
@ -35,7 +35,7 @@
|
||||
** and adapted to mysqldump 05/11/01 by Jani Tolonen
|
||||
*/
|
||||
|
||||
#define DUMP_VERSION "8.21"
|
||||
#define DUMP_VERSION "8.22"
|
||||
|
||||
#include <my_global.h>
|
||||
#include <my_sys.h>
|
||||
@ -651,7 +651,7 @@ static uint getTableStructure(char *table, char* db)
|
||||
/* Make an sql-file, if path was given iow. option -T was given */
|
||||
char buff[20+FN_REFLEN];
|
||||
|
||||
sprintf(buff,"show create table %s",table_name);
|
||||
sprintf(buff,"show create table `%s`",table_name);
|
||||
if (mysql_query(sock, buff))
|
||||
{
|
||||
fprintf(stderr, "%s: Can't get CREATE TABLE for table '%s' (%s)\n",
|
||||
@ -1074,6 +1074,9 @@ static void dumpTable(uint numFields, char *table)
|
||||
fputs(insert_pat,md_result_file);
|
||||
mysql_field_seek(res,0);
|
||||
|
||||
if (opt_xml)
|
||||
fprintf(md_result_file, "\t<row>\n");
|
||||
|
||||
for (i = 0; i < mysql_num_fields(res); i++)
|
||||
{
|
||||
if (!(field = mysql_fetch_field(res)))
|
||||
@ -1163,6 +1166,9 @@ static void dumpTable(uint numFields, char *table)
|
||||
}
|
||||
}
|
||||
|
||||
if (opt_xml)
|
||||
fprintf(md_result_file, "\t</row>\n");
|
||||
|
||||
if (extended_insert)
|
||||
{
|
||||
ulong row_length;
|
||||
|
Reference in New Issue
Block a user