File tree Expand file tree Collapse file tree 2 files changed +1
-9
lines changed
dbt/include/sqlserver/macros/adapter
tests/functional/adapter/dbt Expand file tree Collapse file tree 2 files changed +1
-9
lines changed Original file line number Diff line number Diff line change 11
22{% macro sqlserver__drop_schema_named(schema_name) %}
3- {% set schema_relation = api .Relation .create(schema= schema_name) %}
3+ {% set schema_relation = api .Relation .create(schema= schema_name, database = target . database ) %}
44 {{ adapter .drop_schema (schema_relation) }}
55{% endmacro %}
Original file line number Diff line number Diff line change 1- import pytest
21from dbt .tests .adapter .relations .test_changing_relation_type import BaseChangeRelationTypeValidator
32from dbt .tests .adapter .relations .test_dropping_schema_named import BaseDropSchemaNamed
43
@@ -7,12 +6,5 @@ class TestChangeRelationTypeValidator(BaseChangeRelationTypeValidator):
76 pass
87
98
10- @pytest .mark .xfail (
11- reason = """
12- Test fails as its not passing Use[] properly.
13- `Use[None]` is called, should be `User[TestDB]`
14- Unclear why the macro doens't pass it properly.
15- """
16- )
179class TestDropSchemaNamed (BaseDropSchemaNamed ):
1810 pass
You can’t perform that action at this time.
0 commit comments