Skip to content

Using __table_args__ to specify an interleaved child ignores cascade action #98

@geudrik

Description

@geudrik

Expected Behavior

INTERLEAVE IN PARENT ob_malware ON DELETE CASCADE;

Actual Behavior

INTERLEAVE IN PARENT ob_malware ON DELETE NO ACTION;

Steps to Reproduce the Problem

Create a table using a declarative base, and specify

__table_args__ = {
        "spanner_interleave_in": "ob_malware",
        "spanner_interleave_on_delete_cascade": True
    }

The table is configured correctly to be interleaved, but cascade is set to NO ACTION

Specifications

Metadata

Metadata

Assignees

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