sql: Foreign Key Cannot Reference Its Own Row #27871
Labels
A-sql-fks
A-sql-mutations
Mutation statements: UPDATE/INSERT/UPSERT/DELETE.
A-sql-pgcompat
Semantic compatibility with PostgreSQL
C-bug
Code not up to spec/doc, specs & docs deemed correct. Solution expected to change code/behavior.
The query works in postgresql
This type of structure can be helpful for storing a rooted tree where the root is defined as pointing to itself. Using NULL for the parent of the root prevents me from making (a, b) a composite primary key.
The text was updated successfully, but these errors were encountered: