Commit a39b4848 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-16733 mysqldump --tab and --xml options are conflicting

parent a3dbd5de
...@@ -1350,6 +1350,11 @@ static int get_options(int *argc, char ***argv) ...@@ -1350,6 +1350,11 @@ static int get_options(int *argc, char ***argv)
my_progname_short); my_progname_short);
return(EX_USAGE); return(EX_USAGE);
} }
if (opt_xml && path)
{
fprintf(stderr, "%s: --xml can't be used with --tab.\n", my_progname_short);
return(EX_USAGE);
}
if (opt_asof_timestamp && strchr(opt_asof_timestamp, '\'')) if (opt_asof_timestamp && strchr(opt_asof_timestamp, '\''))
{ {
fprintf(stderr, "%s: Incorrect DATETIME value: '%s'\n", fprintf(stderr, "%s: Incorrect DATETIME value: '%s'\n",
......
...@@ -6584,3 +6584,4 @@ SET GLOBAL LOG_OUTPUT=DEFAULT, GLOBAL GENERAL_LOG=@save_general_log; ...@@ -6584,3 +6584,4 @@ SET GLOBAL LOG_OUTPUT=DEFAULT, GLOBAL GENERAL_LOG=@save_general_log;
TRUNCATE TABLE mysql.general_log; TRUNCATE TABLE mysql.general_log;
DROP DATABASE test1; DROP DATABASE test1;
# End of 10.3 tests # End of 10.3 tests
mysqldump: --xml can't be used with --tab.
...@@ -2980,3 +2980,10 @@ DROP DATABASE test1; ...@@ -2980,3 +2980,10 @@ DROP DATABASE test1;
--remove_file $MYSQLTEST_VARDIR/tmp/dumptest1.sql --remove_file $MYSQLTEST_VARDIR/tmp/dumptest1.sql
--echo # End of 10.3 tests --echo # End of 10.3 tests
#
# MDEV-16733 mysqldump --tab and --xml options are conflicting
#
--replace_result mysqldump.exe mysqldump
--error 1
--exec $MYSQL_DUMP --xml --tab=$MYSQLTEST_VARDIR/tmp 2>&1
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment