Skip to content

Commit d00d46f

Browse files
committed
Merge remote-tracking branch 'origin/5.5' into 10.0
2 parents ecdb39a + 3e63fde commit d00d46f

File tree

4 files changed

+38
-0
lines changed

4 files changed

+38
-0
lines changed

mysql-test/r/loaddata.result

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,3 +532,21 @@ FIELDS TERMINATED BY 't' LINES TERMINATED BY '';
532532
Got one of the listed errors
533533
SET @@sql_mode= @old_mode;
534534
DROP TABLE t1;
535+
#
536+
# MDEV-11079 Regression: LOAD DATA INFILE lost BLOB support using utf8 load files
537+
#
538+
CREATE TABLE t1 (a mediumblob NOT NULL) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
539+
LOAD DATA INFILE '../../std_data/loaddata/mdev-11079.txt' INTO TABLE t1 CHARSET utf8 FIELDS TERMINATED BY ';' ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY '\n';
540+
SELECT HEX(a) FROM t1;
541+
HEX(a)
542+
25AAABAC
543+
DROP TABLE t1;
544+
#
545+
# MDEV-11631 LOAD DATA INFILE fails to load data with an escape character followed by a multi-byte character
546+
#
547+
CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf8);
548+
LOAD DATA INFILE '../../std_data/loaddata/mdev-11631.txt' INTO TABLE t1 CHARACTER SET utf8;
549+
SELECT HEX(a) FROM t1;
550+
HEX(a)
551+
C3A4
552+
DROP TABLE t1;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"%���"
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+

mysql-test/t/loaddata.test

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -658,3 +658,21 @@ SET @@sql_mode= @old_mode;
658658
--remove_file $MYSQLTEST_VARDIR/mysql
659659
DROP TABLE t1;
660660

661+
662+
--echo #
663+
--echo # MDEV-11079 Regression: LOAD DATA INFILE lost BLOB support using utf8 load files
664+
--echo #
665+
666+
CREATE TABLE t1 (a mediumblob NOT NULL) ENGINE=MyISAM DEFAULT CHARSET=latin1 COLLATE=latin1_general_ci;
667+
LOAD DATA INFILE '../../std_data/loaddata/mdev-11079.txt' INTO TABLE t1 CHARSET utf8 FIELDS TERMINATED BY ';' ENCLOSED BY '"' ESCAPED BY '\\' LINES TERMINATED BY '\n';
668+
SELECT HEX(a) FROM t1;
669+
DROP TABLE t1;
670+
671+
--echo #
672+
--echo # MDEV-11631 LOAD DATA INFILE fails to load data with an escape character followed by a multi-byte character
673+
--echo #
674+
675+
CREATE TABLE t1 (a VARCHAR(10) CHARACTER SET utf8);
676+
LOAD DATA INFILE '../../std_data/loaddata/mdev-11631.txt' INTO TABLE t1 CHARACTER SET utf8;
677+
SELECT HEX(a) FROM t1;
678+
DROP TABLE t1;

0 commit comments

Comments
 (0)