You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: mysql-test/r/loaddata.result
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -532,3 +532,21 @@ FIELDS TERMINATED BY 't' LINES TERMINATED BY '';
532
532
Got one of the listed errors
533
533
SET @@sql_mode= @old_mode;
534
534
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;
Copy file name to clipboardExpand all lines: mysql-test/t/loaddata.test
+18Lines changed: 18 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -658,3 +658,21 @@ SET @@sql_mode= @old_mode;
658
658
--remove_file $MYSQLTEST_VARDIR/mysql
659
659
DROP TABLE t1;
660
660
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;
0 commit comments