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.

Add foreignKey constraint validation in PG session when creating a table #276

@johnfangAFW

Description

@johnfangAFW

As observed in issue: #270, we didn't validate the foreign key constraint properly in pg session. We need to add the support when creating a table so that we could fail the second table creation for the following example:

CREATE TABLE PKTABLE (ptest1 int, ptest2 int, UNIQUE(ptest1, ptest2));
CREATE TABLE FKTABLE_FAIL1 (ftest1 int REFERENCES pktable(ptest1));

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions