1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-31 22:22:30 +03:00

MDEV-17377 invalid gap in auto-increment values after LOAD DATA

reset lex->many_values for LOAD DATA, as it's used for
auto-inc range size estimation.
This commit is contained in:
Sergei Golubchik
2018-10-31 18:18:48 +01:00
parent 9ff9d2303d
commit c32f7ed235
3 changed files with 26 additions and 0 deletions

View File

@@ -264,3 +264,17 @@ delete from t1 where a=32767;
insert into t1 values(NULL);
ERROR 22003: Out of range value for column 'a' at row 1
drop table t1;
create table t1 (pk int auto_increment primary key, f varchar(20));
insert t1 (f) values ('a'), ('b'), ('c'), ('d');
select null, f into outfile 'load.data' from t1 limit 1;
load data infile 'load.data' into table t1;
insert t1 (f) values ('<===');
select * from t1;
pk f
1 a
2 b
3 c
4 d
5 a
6 <===
drop table t1;