Hi, I'm trying to use persistent-sqlite and deleteCascade with foreign keys referencing non-primary-key columns.
Here is my example program based on the reproduction template.
When I run the example, deleteCascade correctly deletes rows of tables with foreign keys that reference the username PK column. But it does not delete the rows of tables with foreign keys that reference the non-PK name column.
Is this something that should work with persistent-sqlite? My current workaround is to replace deleteCascade with multiple deleteWhere statements to take care of the related entities.
Hi, I'm trying to use persistent-sqlite and
deleteCascadewith foreign keys referencing non-primary-key columns.Here is my example program based on the reproduction template.
When I run the example,
deleteCascadecorrectly deletes rows of tables with foreign keys that reference theusernamePK column. But it does not delete the rows of tables with foreign keys that reference the non-PKnamecolumn.Is this something that should work with persistent-sqlite? My current workaround is to replace
deleteCascadewith multipledeleteWherestatements to take care of the related entities.