-
Notifications
You must be signed in to change notification settings - Fork 6k
Closed
Labels
affects-5.0This bug affects 5.0.x versions.This bug affects 5.0.x versions.affects-5.1This bug affects 5.1.x versions.This bug affects 5.1.x versions.affects-5.2This bug affects 5.2.x versions.This bug affects 5.2.x versions.affects-5.3This bug affects 5.3.x versions.This bug affects 5.3.x versions.affects-5.4This bug affects the 5.4.x(LTS) versions.This bug affects the 5.4.x(LTS) versions.affects-6.0affects-6.1This bug affects the 6.1.x(LTS) versions.This bug affects the 6.1.x(LTS) versions.affects-6.2severity/majorsig/transactionSIG:TransactionSIG:Transactiontype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.
Description
Bug Report
Please answer these questions before submitting your issue. Thanks!
<!-- Create loaddata3.bat file -->
number row data
1 row 1
2 row 2
error 12345678901234567890123456789012345678901234567890
3 row 3
wrong end 12345678901234567890123456789012345678901234567890
1. Minimal reproduce step (Required)
create table t1 (a int, b char(10)) charset latin1;
load data local infile '~/pingcap/Github/tidb-test/MYSQL_TEST/std_data/loaddata3.dat' ignore into table t1 fields terminated by '' enclosed by '' ignore 1 lines;
select * from t1;
2. What did you expect to see? (Required)
mysql> create table t1 (a int, b char(10)) charset latin1;
Query OK, 0 rows affected (0.03 sec)
mysql> load data local infile '~/pingcap/Github/tidb-test/MYSQL_TEST/std_data/loaddata3.dat' ignore into table t1 fields terminated by '' enclosed by '' ignore 1 lines;
Query OK, 5 rows affected, 4 warnings (0.02 sec)
Records: 5 Deleted: 0 Skipped: 0 Warnings: 4
mysql> select * from t1;
+------+------------+
| a | b |
+------+------------+
| 1 | row 1 |
| 2 | row 2 |
| 0 | 1234567890 |
| 3 | row 3 |
| 0 | 1234567890 |
+------+------------+
5 rows in set (0.00 sec)
3. What did you see instead (Required)
Nothing for tidb
4. What is your TiDB version? (Required)
| Release Version: v5.4.0
Edition: Community
Git Commit Hash: 55f3b24c1c9f506bd652ef1d162283541e428872
Git Branch: heads/refs/tags/v5.4.0
UTC Build Time: 2022-01-25 08:41:05
GoVersion: go1.16.4
Race Enabled: false
TiKV Min Version: v3.0.0-60965b006877ca7234adaced7890d7b029ed1306
Check Table Before Drop: false |
Metadata
Metadata
Assignees
Labels
affects-5.0This bug affects 5.0.x versions.This bug affects 5.0.x versions.affects-5.1This bug affects 5.1.x versions.This bug affects 5.1.x versions.affects-5.2This bug affects 5.2.x versions.This bug affects 5.2.x versions.affects-5.3This bug affects 5.3.x versions.This bug affects 5.3.x versions.affects-5.4This bug affects the 5.4.x(LTS) versions.This bug affects the 5.4.x(LTS) versions.affects-6.0affects-6.1This bug affects the 6.1.x(LTS) versions.This bug affects the 6.1.x(LTS) versions.affects-6.2severity/majorsig/transactionSIG:TransactionSIG:Transactiontype/bugThe issue is confirmed as a bug.The issue is confirmed as a bug.