mirror of
https://github.com/apache/superset.git
synced 2026-04-16 22:55:52 +00:00
[hotfix] [sql lab] fix sqlite errors when schema is selected
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user