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

MDEV-33934 Assertion `!check_foreigns' failed in

bulk_insert_apply_for_table(dict_table_t*)

This issue is caused by
commit 188c5da72a (MDEV-32453).

trx_t::bulk_insert_apply_for_table(): Remove the assert
check_unique_secondary and check_foreigns. InnoDB can
apply the bulk insert operation even after disabling
the check_foreigns and check_unique_secondary variable.
This commit is contained in:
Thirunarayanan Balathandayuthapani
2024-04-18 13:29:42 +05:30
parent 11aeef2aa2
commit 8a3755cc29
3 changed files with 23 additions and 2 deletions

View File

@@ -488,4 +488,16 @@ BEGIN;
LOAD DATA INFILE 'VARDIR/tmp/t.outfile' INTO TABLE t;
COMMIT;
DROP TABLE t;
#
# MDEV-33934 Assertion `!check_foreigns' failed in
# trx_t::bulk_insert_apply_for_table(dict_table_t*)
#
CREATE TABLE t1(f1 INT,f2 INT,KEY(f1))engine=innodb;
BEGIN;
INSERT INTO t1 VALUES();
SET STATEMENT FOREIGN_KEY_CHECKS=1 FOR SELECT * FROM t1;
f1 f2
NULL NULL
COMMIT;
DROP TABLE t1;
# End of 10.11 tests