Commit 6fb53d30 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-4718 Test "outfile_loaddata" fails on bigendian arches (ppc64)

for field terminators, uchar was compared with char
parent 9675ddc9
...@@ -143,15 +143,8 @@ TRUNCATE t2; ...@@ -143,15 +143,8 @@ TRUNCATE t2;
LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' INTO TABLE t2 CHARACTER SET binary FIELDS TERMINATED BY 'ъ'; LOAD DATA INFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' INTO TABLE t2 CHARACTER SET binary FIELDS TERMINATED BY 'ъ';
Warnings: Warnings:
Warning 1638 Non-ASCII separator arguments are not fully supported Warning 1638 Non-ASCII separator arguments are not fully supported
Warning 1265 Data truncated for column 'a' at row 1
Warning 1261 Row 1 doesn't contain data for all columns
Warning 1261 Row 1 doesn't contain data for all columns
Warning 1265 Data truncated for column 'a' at row 2
Warning 1261 Row 2 doesn't contain data for all columns
Warning 1261 Row 2 doesn't contain data for all columns
SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a, b, c; SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a, b, c;
a b c a b c
1 NULL NULL
1 ABC-АБВ DEF-ÂÃÄ 1 ABC-АБВ DEF-ÂÃÄ
2 NULL NULL 2 NULL NULL
SELECT * FROM t1 INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' LINES STARTING BY 'ъ'; SELECT * FROM t1 INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' LINES STARTING BY 'ъ';
...@@ -181,7 +174,6 @@ Warning 1638 Non-ASCII separator arguments are not fully supported ...@@ -181,7 +174,6 @@ Warning 1638 Non-ASCII separator arguments are not fully supported
SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a, b, c; SELECT * FROM t1 UNION SELECT * FROM t2 ORDER BY a, b, c;
a b c a b c
1 ABC-АБВ DEF-ÂÃÄ 1 ABC-АБВ DEF-ÂÃÄ
1 ABC-АБВ DEF-ÂÃÄÑŠ2
2 NULL NULL 2 NULL NULL
# Default (binary) charset: # Default (binary) charset:
SELECT * INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' FROM t1; SELECT * INTO OUTFILE 'MYSQLTEST_VARDIR/tmp/t1.txt' FROM t1;
......
...@@ -1425,7 +1425,7 @@ inline int READ_INFO::terminator(char *ptr,uint length) ...@@ -1425,7 +1425,7 @@ inline int READ_INFO::terminator(char *ptr,uint length)
uint i; uint i;
for (i=1 ; i < length ; i++) for (i=1 ; i < length ; i++)
{ {
if ((chr=GET) != *++ptr) if ((chr=GET) != *(uchar*)++ptr)
{ {
break; break;
} }
......
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