Skip to content

Commit

Permalink
add quote policy to Relation.create calls
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacob Beck committed Apr 22, 2019
1 parent 3188aea commit 8b58b20
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
4 changes: 3 additions & 1 deletion core/dbt/adapters/base/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
3 changes: 2 additions & 1 deletion core/dbt/adapters/sql/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit 8b58b20

Please sign in to comment.