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 1
1
2
2
{% 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 ) %}
4
4
{{ adapter .drop_schema (schema_relation) }}
5
5
{% endmacro %}
Original file line number Diff line number Diff line change 1
- import pytest
2
1
from dbt .tests .adapter .relations .test_changing_relation_type import BaseChangeRelationTypeValidator
3
2
from dbt .tests .adapter .relations .test_dropping_schema_named import BaseDropSchemaNamed
4
3
@@ -7,12 +6,5 @@ class TestChangeRelationTypeValidator(BaseChangeRelationTypeValidator):
7
6
pass
8
7
9
8
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
- )
17
9
class TestDropSchemaNamed (BaseDropSchemaNamed ):
18
10
pass
You can’t perform that action at this time.
0 commit comments