Skip to content

Commit

Permalink
fix: Table name should be quoted by back quotes (`) on DROP TABLE (#385)
Browse files Browse the repository at this point in the history
  • Loading branch information
ankiaga authored Feb 7, 2024
1 parent 217841b commit 628d26c
Showing 1 changed file with 1 addition and 1 deletion.
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 @@ -438,7 +438,7 @@ def visit_drop_table(self, drop_table, **kw):
for index in drop_table.element.indexes:
indexes += "DROP INDEX {};".format(self.preparer.quote(index.name))

return indexes + constrs + str(drop_table)
return indexes + constrs + super().visit_drop_table(drop_table)

def visit_primary_key_constraint(self, constraint, **kw):
"""Build primary key definition.
Expand Down

0 comments on commit 628d26c

Please sign in to comment.