Skip to content
This repository was archived by the owner on Apr 1, 2023. It is now read-only.
This repository was archived by the owner on Apr 1, 2023. It is now read-only.

yb_pg_foreign_key bug #270

@jfunston

Description

@jfunston

test# ./regression.sh
src/k2/postgres/src/test/regress/chogori_schedule

*** 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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions