Commit 0c97fbef authored by unknown's avatar unknown
Browse files

Fix for bug #14822: Test "mysqldump" fails, "result" protocol seems wrong.


mysql-test/t/mysqldump.test:
  Fix for bug #14822: Test "mysqldump" fails, "result" protocol seems wrong.
  2>&1 added to be able to see error messages.
parent d295807e
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -1614,6 +1614,16 @@ mysqldump: Couldn't find table: "t\1"

mysqldump: Couldn't find table: "t/1"

mysqldump: Couldn't find table: "T_1"

mysqldump: Couldn't find table: "T%1"

mysqldump: Couldn't find table: "T'1"

mysqldump: Couldn't find table: "T_1"

mysqldump: Couldn't find table: "T_"

test_sequence
------ Testing with illegal database names ------
mysqldump: Got error: 1049: Unknown database 'mysqldump_test_d' when selecting the database
+5 −5
Original line number Diff line number Diff line
@@ -658,19 +658,19 @@ select '------ Testing with illegal table names ------' as test_sequence ;
--exec $MYSQL_DUMP --compact --skip-comments mysqldump_test_db  "t/1" 2>&1

--error 6
--exec $MYSQL_DUMP --compact --skip-comments "mysqldump_test_db" "T_1"
--exec $MYSQL_DUMP --compact --skip-comments mysqldump_test_db "T_1" 2>&1

--error 6
--exec $MYSQL_DUMP --compact --skip-comments "mysqldump_test_db" "T%1"
--exec $MYSQL_DUMP --compact --skip-comments mysqldump_test_db "T%1" 2>&1

--error 6
--exec $MYSQL_DUMP --compact --skip-comments "mysqldump_test_db" "T'1"
--exec $MYSQL_DUMP --compact --skip-comments mysqldump_test_db "T'1" 2>&1

--error 6
--exec $MYSQL_DUMP --compact --skip-comments "mysqldump_test_db" "T_1"
--exec $MYSQL_DUMP --compact --skip-comments mysqldump_test_db "T_1" 2>&1

--error 6
--exec $MYSQL_DUMP --compact --skip-comments "mysqldump_test_db" "T_"
--exec $MYSQL_DUMP --compact --skip-comments mysqldump_test_db "T_" 2>&1

--disable_query_log
select '------ Testing with illegal database names ------' as test_sequence ;