Bug#29484 ctype_big5 fails on 'double whopper' in mysql-5.1-new-rpl

Problem: "mysqldump" doesn exists when running "mysql-test-run --embedded-server".
Fix: changing test to use "SELECT INTO OUTFILE" instead of "mysqldump -T".
parent 825570f5
...@@ -193,11 +193,13 @@ select hex(convert(_big5 0xC84041 using ucs2)); ...@@ -193,11 +193,13 @@ select hex(convert(_big5 0xC84041 using ucs2));
hex(convert(_big5 0xC84041 using ucs2)) hex(convert(_big5 0xC84041 using ucs2))
003F0041 003F0041
End of 4.1 tests End of 4.1 tests
set names big5;
create table t1 (a blob); create table t1 (a blob);
insert into t1 values (0xEE00); insert into t1 values (0xEE00);
select * into outfile 'test/t1.txt' from t1;
delete from t1; delete from t1;
select hex(load_file('test/t1.txt')); select hex(load_file('MYSQLTEST_VARDIR/master-data/test/t1.txt'));;
hex(load_file('test/t1.txt')) hex(load_file('MYSQLTEST_VARDIR/master-data/test/t1.txt'))
5CEE5C300A 5CEE5C300A
load data infile 't1.txt' into table t1; load data infile 't1.txt' into table t1;
select hex(a) from t1; select hex(a) from t1;
......
...@@ -68,15 +68,16 @@ select hex(convert(_big5 0xC84041 using ucs2)); ...@@ -68,15 +68,16 @@ select hex(convert(_big5 0xC84041 using ucs2));
# #
# Bug#26711 "binary content 0x00 sometimes becomes 0x5C 0x00 after dump/load" # Bug#26711 "binary content 0x00 sometimes becomes 0x5C 0x00 after dump/load"
# #
set names big5;
create table t1 (a blob); create table t1 (a blob);
insert into t1 values (0xEE00); insert into t1 values (0xEE00);
--exec $MYSQL_DUMP --default-character-set=big5 -T $MYSQLTEST_VARDIR/master-data/test test t1 select * into outfile 'test/t1.txt' from t1;
delete from t1; delete from t1;
select hex(load_file('test/t1.txt')); --replace_result $MYSQLTEST_VARDIR MYSQLTEST_VARDIR
--eval select hex(load_file('$MYSQLTEST_VARDIR/master-data/test/t1.txt'));
load data infile 't1.txt' into table t1; load data infile 't1.txt' into table t1;
select hex(a) from t1; select hex(a) from t1;
--exec rm $MYSQLTEST_VARDIR/master-data/test/t1.txt --exec rm $MYSQLTEST_VARDIR/master-data/test/t1.txt
--exec rm $MYSQLTEST_VARDIR/master-data/test/t1.sql
drop table t1; drop table t1;
--echo End of 5.0 tests --echo End of 5.0 tests
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