File tree Expand file tree Collapse file tree
dbt/include/sqlserver/macros/adapters
tests/functional/adapter/dbt Expand file tree Collapse file tree Original file line number Diff line number Diff line change 3737{% endmacro %}
3838
3939{% macro sqlserver__drop_schema_named(schema_name) %}
40- {% set schema_relation = api .Relation .create(schema= schema_name) %}
40+ {% set schema_relation = api .Relation .create(schema= schema_name, database = target . database ) %}
4141 {{ adapter .drop_schema (schema_relation) }}
4242{% endmacro %}
4343
Original file line number Diff line number Diff line change 1- import pytest
2-
31from dbt .tests .adapter .relations .test_changing_relation_type import BaseChangeRelationTypeValidator
42from dbt .tests .adapter .relations .test_dropping_schema_named import BaseDropSchemaNamed
53
@@ -8,10 +6,5 @@ class TestChangeRelationTypeValidator(BaseChangeRelationTypeValidator):
86 pass
97
108
11- @pytest .mark .xfail (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- """ )
169class TestDropSchemaNamed (BaseDropSchemaNamed ):
1710 pass
You can’t perform that action at this time.
0 commit comments