[hotfix] [sql lab] fix sqlite errors when schema is selected

This commit is contained in:
Maxime Beauchemin
2017-04-05 00:25:39 -07:00
parent 62959ca38b
commit 081bdca71e

View File

@@ -574,7 +574,7 @@ class Database(Model, AuditMixinNullable):
# 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