mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +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:
@@ -5,3 +5,14 @@
|
||||
--source include/have_innodb.inc
|
||||
set default_storage_engine=innodb;
|
||||
--source auto_increment_ranges.inc
|
||||
|
||||
#
|
||||
# MDEV-17377 invalid gap in auto-increment values after LOAD DATA
|
||||
#
|
||||
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;
|
||||
drop table t1;
|
||||
|
||||
Reference in New Issue
Block a user