Skip to content

Commit

Permalink
fix: correct typo in spanner_interleave_on_delete_cascade keyword (#99)
Browse files Browse the repository at this point in the history
Co-authored-by: larkee <larkee@users.noreply.github.com>
  • Loading branch information
larkee and larkee committed Jul 19, 2021
1 parent 566198d commit a0ebf75
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion google/cloud/sqlalchemy_spanner/sqlalchemy_spanner.py
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
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

0 comments on commit a0ebf75

Please sign in to comment.