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
I can't define foreign key relationships using REFERENCES on specific fields because I get
found syntax error when parsing DDL "CREATE TABLE b (
b_id INTEGER PRIMARY KEY,
a_id INTEGER REFERENCES a (a_id),
a_my_text TEXT NOT NULL REFERENCES a (my_text)
)": syntax error at position 75
Running the same code directly in psql works though! I'm using the following command to run psqldef
Problem
I can't define foreign key relationships using REFERENCES on specific fields because I get
Running the same code directly in
psql
works though! I'm using the following command to run psqldefYou can find the full grammar here https://www.postgresql.org/docs/9.1/sql-createtable.html if you CTRL-F for "REFERENCES reftable"
Expected
Initial schema
Blank!
Input DDLs
Output DDLs
None 😢
The text was updated successfully, but these errors were encountered: