You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 1, 2023. It is now read-only.
*** 767,773 ****
-- Test for referencing column number smaller than referenced constraint
CREATE TABLE PKTABLE (ptest1 int, ptest2 int, UNIQUE(ptest1, ptest2));
CREATE TABLE FKTABLE_FAIL1 (ftest1 int REFERENCES pktable(ptest1));
! ERROR: there is no unique constraint matching given keys for referenced table "pktable"
SELECT COUNT(*) FROM pg_class WHERE relname = 'FKTABLE_FAIL1';
count
--- 767,773 ----
-- Test for referencing column number smaller than referenced constraint
CREATE TABLE PKTABLE (ptest1 int, ptest2 int, UNIQUE(ptest1, ptest2));
CREATE TABLE FKTABLE_FAIL1 (ftest1 int REFERENCES pktable(ptest1));
! ERROR: Invalid argument: Duplicate table
SELECT COUNT(*) FROM pg_class WHERE relname = 'FKTABLE_FAIL1';
count