Hi all,
I have a table where I want to structure a parent-child relationship.
The way I intend to do thisis by means of other columns in the same table referencing the primary key by means of a foreign key.
the 3 columsn in question are:
id - primary key, identity autoincrement
root_id - foreign key to id
parent_id - foreign key to id
I would use the root_id to fetch all child items of a root node, or the parent_id to fetch the immediate siblings.
foreign key columns are set to accept NULL values.
When I try to save it though, I get the error:
Invalid Solicitation.
Server Response: Microsoft SQL: The INSERT statement conflicted with the FOREIGN KEY SAME TABLE constraint "FK_process_item_process_item2".
Are FOREIGN KEY SAME TABLE simply unsupported, or there is some trick to saving to it?