Commit 7ee6a4a5 authored by Paul McCullagh's avatar Paul McCullagh

Referenced table does not exist

parent 8e406f9a
......@@ -365,7 +365,7 @@ set foreign_key_checks = 1;
drop table if exists t2, t1;
set foreign_key_checks = 1;
CREATE TABLE t2 (s1 INT DEFAULT NULL, FOREIGN KEY (s1) REFERENCES t1 (s1));
drop table if exists t2;
ERROR HY000: Can't create table 'test.t2' (errno: 151)
set foreign_key_checks = 0;
CREATE TABLE t2 (s1 INT DEFAULT NULL, FOREIGN KEY (s1) REFERENCES t1 (s1));
set foreign_key_checks = 1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment