mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-28242 Assertion `!check_foreigns' failed in trx_t::check_bulk_buffer
If transaction does bulk insert and disables the foreign_key_check then InnoDB fails with the assert failure. InnoDB has strict assertion that check_foreigns and unique_secondary_check should be enabled if the transaction does bulk insert in innodb_prepare_commit_versioned().
This commit is contained in:
@@ -281,3 +281,18 @@ c
|
||||
SELECT * FROM t2;
|
||||
c
|
||||
DROP TABLE t2, t1;
|
||||
#
|
||||
# MDEV-28242 Assertion `!check_foreigns' failed in
|
||||
# trx_t::check_bulk_buffer
|
||||
#
|
||||
CREATE TABLE t1 (c INT)ENGINE=InnoDB;
|
||||
BEGIN;
|
||||
INSERT INTO t1 VALUES(1), (1);
|
||||
SET SESSION foreign_key_checks=TRUE;
|
||||
SHOW CREATE TABLE t1;
|
||||
Table Create Table
|
||||
t1 CREATE TABLE `t1` (
|
||||
`c` int(11) DEFAULT NULL
|
||||
) ENGINE=InnoDB DEFAULT CHARSET=latin1
|
||||
CREATE TABLE t2(d INT)ENGINE=InnoDB;
|
||||
DROP TABLE t2, t1;
|
||||
|
Reference in New Issue
Block a user