Skip to content

Commit

Permalink
[hotfix] [sql lab] fix sqlite errors when schema is selected
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Apr 5, 2017
1 parent 62959ca commit 081bdca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion superset/models/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -574,7 +574,7 @@ def get_database_for_various_backend(self, uri, default_database=None):
# Postgres and Redshift use the concept of schema as a logical entity
# on top of the database, so the database should not be changed
# even if passed default_database
elif self.backend == 'redshift' or self.backend == 'postgresql':
elif self.backend in ('redshift', 'postgresql', 'sqlite'):
pass
elif default_database:
database = default_database
Expand Down

0 comments on commit 081bdca

Please sign in to comment.