Skip to content

Commit f2783bc

Browse files
authored
Merge branch 'master' into create-as
2 parents 4401422 + 8a8318a commit f2783bc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

dbt/include/sqlserver/macros/adapters/metadata.sql

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,11 @@
118118
{%- endmacro %}
119119

120120
{% macro sqlserver__information_schema_name(database) -%}
121-
information_schema
121+
{%- if database -%}
122+
[{{ database }}].INFORMATION_SCHEMA
123+
{%- else -%}
124+
INFORMATION_SCHEMA
125+
{%- endif -%}
122126
{%- endmacro %}
123127

124128
{% macro sqlserver__list_schemas(database) %}

0 commit comments

Comments
 (0)