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

Commit 628d26c

Browse files
authored
fix: Table name should be quoted by back quotes (`) on DROP TABLE (#385)
1 parent 217841b commit 628d26c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

google/cloud/sqlalchemy_spanner/sqlalchemy_spanner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -438,7 +438,7 @@ def visit_drop_table(self, drop_table, **kw):
438438
for index in drop_table.element.indexes:
439439
indexes += "DROP INDEX {};".format(self.preparer.quote(index.name))
440440

441-
return indexes + constrs + str(drop_table)
441+
return indexes + constrs + super().visit_drop_table(drop_table)
442442

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

0 commit comments

Comments
 (0)