diff --git a/core/dbt/adapters/base/impl.py b/core/dbt/adapters/base/impl.py index d86ce6fc4e6..29c11cc1601 100644 --- a/core/dbt/adapters/base/impl.py +++ b/core/dbt/adapters/base/impl.py @@ -561,7 +561,9 @@ def list_relations(self, database, schema, model_name=None): information_schema = self.Relation.create( database=database, schema=schema, - model_name='').information_schema() + model_name='', + quote_policy=self.config.quoting + ).information_schema() # we can't build the relations cache because we don't have a # manifest so we can't run any operations. diff --git a/core/dbt/adapters/sql/impl.py b/core/dbt/adapters/sql/impl.py index 645d3e2f7d1..65a0344d606 100644 --- a/core/dbt/adapters/sql/impl.py +++ b/core/dbt/adapters/sql/impl.py @@ -234,7 +234,8 @@ def list_schemas(self, database, model_name=None): def check_schema_exists(self, database, schema, model_name=None): information_schema = self.Relation.create( - database=database, schema=schema + database=database, schema=schema, + quote_policy=self.config.quoting ).information_schema() kwargs = {'information_schema': information_schema, 'schema': schema}