Skip to content

Commit

Permalink
MDEV-16220 Do not pass UTF8 to mysql in command line parameters, on W…
Browse files Browse the repository at this point in the history
…indows

Moved parts of mysql.test to mysql_not_windows.test
  • Loading branch information
vaintroub committed Aug 14, 2018
1 parent 0496bbc commit 68eb9b1
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 6 deletions.
2 changes: 0 additions & 2 deletions mysql-test/r/mysql.result
Original file line number Diff line number Diff line change
Expand Up @@ -538,8 +538,6 @@ a
#
# End of 10.1 tests
#
ERROR 1300 (HY000): Invalid utf8 character string: 'test\xF0\x9F\x98\x81 '
ERROR 1300 (HY000): Invalid binary character string: 'test\xF0\x9F\x98\x81 '
ERROR 1300 (HY000) at line 2: Invalid utf8 character string: 'test\xF0\x9F\x98\x81'
set GLOBAL sql_mode=default;

Expand Down
2 changes: 2 additions & 0 deletions mysql-test/r/mysql_not_windows.result
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,5 @@ End of tests
2
X
3
ERROR 1300 (HY000): Invalid utf8 character string: 'test\xF0\x9F\x98\x81 '
ERROR 1300 (HY000): Invalid binary character string: 'test\xF0\x9F\x98\x81 '
5 changes: 1 addition & 4 deletions mysql-test/t/mysql.test
Original file line number Diff line number Diff line change
Expand Up @@ -638,10 +638,7 @@ EOF
--echo # End of 10.1 tests
--echo #

--error 1
--exec $MYSQL --default-character-set=utf8 -e "select 1" "test😁 " 2>&1
--error 1
--exec $MYSQL --default-character-set=binary -e "select 1" "test😁 " 2>&1

--write_file $MYSQLTEST_VARDIR/tmp/mdev-6572.sql
SET NAMES utf8;
USE test😁 ;
Expand Down
7 changes: 7 additions & 0 deletions mysql-test/t/mysql_not_windows.test
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,10 @@ exec $MYSQL test -e "select
let $query = select 3
as X;
exec $MYSQL test -e "$query";

# Not ran on Windows, since non-ASCII does not work on command line.
# (MDEV-16220)
--error 1
--exec $MYSQL --default-character-set=utf8 -e "select 1" "test😁 " 2>&1
--error 1
--exec $MYSQL --default-character-set=binary -e "select 1" "test😁 " 2>&1

0 comments on commit 68eb9b1

Please sign in to comment.