Skip to content

Commit

Permalink
make PostgresAdapter.verify_database handle names that resolve to the…
Browse files Browse the repository at this point in the history
… same thing
  • Loading branch information
Jacob Beck committed Apr 16, 2019
1 parent 7e41ffb commit d5d0e2e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plugins/postgres/dbt/adapters/postgres/impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,10 @@ def date_function(cls):

@available_raw
def verify_database(self, database):
database = database.strip('"')
if database.startswith('"'):
database = database.strip('"')
else:
database = database.lower()
expected = self.config.credentials.database
if database != expected:
raise dbt.exceptions.NotImplementedException(
Expand Down

0 comments on commit d5d0e2e

Please sign in to comment.