mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
Fix for the bug #1125 mysqldump -X creates invalid XML
This commit is contained in:
parent
63cf4946a7
commit
3e9c55590a
1 changed files with 4 additions and 4 deletions
|
@ -1137,7 +1137,7 @@ static void dumpTable(uint numFields, char *table)
|
|||
safe_exit(EX_CONSCHECK);
|
||||
return;
|
||||
}
|
||||
if (extended_insert)
|
||||
if (extended_insert && !opt_xml)
|
||||
{
|
||||
ulong length = lengths[i];
|
||||
if (i == 0)
|
||||
|
@ -1222,7 +1222,7 @@ static void dumpTable(uint numFields, char *table)
|
|||
if (opt_xml)
|
||||
fprintf(md_result_file, "\t</row>\n");
|
||||
|
||||
if (extended_insert)
|
||||
if (extended_insert && !opt_xml)
|
||||
{
|
||||
ulong row_length;
|
||||
dynstr_append(&extended_row,")");
|
||||
|
@ -1404,7 +1404,7 @@ static int init_dumping(char *database)
|
|||
(opt_quoted ? "`" : ""));
|
||||
}
|
||||
}
|
||||
if (extended_insert)
|
||||
if (extended_insert && !opt_xml)
|
||||
if (init_dynamic_string(&extended_row, "", 1024, 1024))
|
||||
exit(EX_EOM);
|
||||
return 0;
|
||||
|
@ -1676,7 +1676,7 @@ int main(int argc, char **argv)
|
|||
if (md_result_file != stdout)
|
||||
my_fclose(md_result_file, MYF(0));
|
||||
my_free(opt_password, MYF(MY_ALLOW_ZERO_PTR));
|
||||
if (extended_insert)
|
||||
if (extended_insert & !opt_xml)
|
||||
dynstr_free(&extended_row);
|
||||
my_end(0);
|
||||
return(first_error);
|
||||
|
|
Loading…
Add table
Reference in a new issue