Skip to content

Commit

Permalink
Remove options NullPool does not support (#3460)
Browse files Browse the repository at this point in the history
  • Loading branch information
arikfr authored Feb 19, 2019
1 parent ebef0ef commit f421119
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions redash/models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ def apply_pool_defaults(self, app, options):
super(RedashSQLAlchemy, self).apply_pool_defaults(app, options)
if settings.SQLALCHEMY_DISABLE_POOL:
options['poolclass'] = NullPool
# Remove options NullPool does not support:
options.pop('max_overflow')


db = RedashSQLAlchemy(session_options={
Expand Down

0 comments on commit f421119

Please sign in to comment.