Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: correct typo in spanner_interleave_on_delete_cascade keyword #99

Merged
merged 1 commit into from
Jul 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion google/cloud/sqlalchemy_spanner/sqlalchemy_spanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def post_create_table(self, table):
table.kwargs["spanner_interleave_in"]
)

if table.kwargs.get("spanner_inverleave_on_delete_cascade"):
if table.kwargs.get("spanner_interleave_on_delete_cascade"):
post_cmds += " ON DELETE CASCADE"

return post_cmds
Expand Down
2 changes: 1 addition & 1 deletion test/test_suite.py
Original file line number Diff line number Diff line change
Expand Up @@ -1520,7 +1520,7 @@ def test_interleave_on_delete_cascade(self):
Column("client_id", Integer, primary_key=True),
Column("client_name", String(16), nullable=False),
spanner_interleave_in="team",
spanner_inverleave_on_delete_cascade=True,
spanner_interleave_on_delete_cascade=True,
)
with mock.patch("google.cloud.spanner_dbapi.cursor.Cursor.execute") as execute:
client.create(self._engine)
Expand Down