Skip to content

Commit

Permalink
Merge pull request #1412 from fishtown-analytics/fix/insensitive-list…
Browse files Browse the repository at this point in the history
…-schemas

use ilike instead of = for database when listing schemas (#1411)
  • Loading branch information
beckjake authored Apr 24, 2019
2 parents 3f31b52 + 877440b commit ad1fcbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/dbt/include/global_project/macros/adapters/common.sql
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
{% call statement('list_schemas', fetch_result=True, auto_begin=False) %}
select distinct schema_name
from {{ information_schema_name(database) }}.schemata
where catalog_name='{{ database }}'
where catalog_name ilike '{{ database }}'
{% endcall %}
{{ return(load_result('list_schemas').table) }}
{% endmacro %}
Expand Down

0 comments on commit ad1fcbe

Please sign in to comment.