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

MDEV-15330 Server crash or assertion `table->insert_values' failure in write_record upon LOAD DATA

copy the corresponding line from mysql_prepare_insert()
This commit is contained in:
Sergei Golubchik
2018-02-23 20:22:09 +01:00
parent fd240a10e3
commit 5c7a40e3cf
3 changed files with 27 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
#
# MDEV-15330 Server crash or assertion `table->insert_values' failure in write_record upon LOAD DATA
#
CREATE TABLE t1 (a INT, b INT, c INT, vc INT AS (c), UNIQUE(a), UNIQUE(b)) WITH SYSTEM VERSIONING;
INSERT IGNORE INTO t1 (a,b,c) VALUES (1,2,3);
SELECT a, b, c FROM t1 INTO OUTFILE '15330.data';
LOAD DATA INFILE '15330.data' IGNORE INTO TABLE t1 (a,b,c);
LOAD DATA INFILE '15330.data' REPLACE INTO TABLE t1 (a,b,c);
# Cleanup
DROP TABLE t1;