Skip to content

Commit 2dacc34

Browse files
use table_ instead
Co-authored-by: Jo <46752250+georgesittas@users.noreply.github.com>
1 parent 215ceae commit 2dacc34

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

sqlmesh/core/engine_adapter/mssql.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -173,13 +173,7 @@ def drop_schema(
173173
objects = self._get_data_objects(schema_name)
174174
for obj in objects:
175175
# Build properly quoted table for MSSQL using square brackets when needed
176-
object_name = ".".join(
177-
[
178-
exp.to_identifier(obj.schema_name).sql(self.dialect),
179-
exp.to_identifier(obj.name).sql(self.dialect),
180-
]
181-
)
182-
object_table = exp.to_table(object_name, dialect=self.dialect)
176+
object_name = exp.table_(obj.name, obj.schema_name)
183177

184178
# _get_data_objects is catalog-specific, so these can't accidentally drop view/tables in another catalog
185179
if obj.type == DataObjectType.VIEW:

0 commit comments

Comments
 (0)