We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 215ceae commit 2dacc34Copy full SHA for 2dacc34
1 file changed
sqlmesh/core/engine_adapter/mssql.py
@@ -173,13 +173,7 @@ def drop_schema(
173
objects = self._get_data_objects(schema_name)
174
for obj in objects:
175
# 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)
+ object_name = exp.table_(obj.name, obj.schema_name)
183
184
# _get_data_objects is catalog-specific, so these can't accidentally drop view/tables in another catalog
185
if obj.type == DataObjectType.VIEW:
0 commit comments