Skip to content
This repository was archived by the owner on May 14, 2026. It is now read-only.
This repository was archived by the owner on May 14, 2026. It is now read-only.

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

Closed

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

Activity

  1. self-assigned this
    on Jul 19, 2021
  2. larkee commented on Jul 19, 2021

    @larkee
    Contributor

    Thank you for filing this issue!

    I was able to replicate the problem and discovered that the implementation was not checking the passed bool due to a typo in the keyword 😅

    I have created a fix PR here: #99

  3. geudrik commented on Jul 19, 2021

    @geudrik
    Author

    Thanks for a quick fix! 😀

  4. geudrik commented on Jul 22, 2021

    @geudrik
    Author

    Any idea when this will make it onto pypi? We're ready to start building with it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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