Skip to content

SQLite deleteCascade does not handle all foreign keys #909

@rvl

Description

@rvl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions