1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

MDEV-788 mysqlimport should support the ability to disable foreign keys

This commit is contained in:
Robert Bindar
2019-05-13 12:30:35 +03:00
committed by Sergey Vojtovich
parent 47637a3dd1
commit a941e58fb8
3 changed files with 56 additions and 2 deletions

View File

@ -5610,3 +5610,21 @@ DROP FUNCTION f;
#
DROP VIEW v1;
DROP FUNCTION f;
#
# MDEV-788 New option to ignore foreign key contraints in mysqlimport
#
create table t1 (
id int primary key
) engine=InnoDB;
create table t2 (
t1_id int,
CONSTRAINT fk
FOREIGN KEY (t1_id) REFERENCES t1 (id)
) ENGINE = InnoDB;
select count(*) from t2;
count(*)
1
select count(*) from t2;
count(*)
2
drop tables t2, t1;