mirror of
https://github.com/rqlite/sqlalchemy-rqlite.git
synced 2022-10-30 02:38:33 +03:00
Merge pull request #11 from zmedico/immutabledict-copy-issue-10
create_connect_args: fix AttributeError: 'sqlalchemy.cimmutabledict.immutabledict' object has no attribute 'copy'
This commit is contained in:
@@ -72,7 +72,7 @@ class SQLiteDialect_rqlite(SQLiteDialect):
|
|||||||
return pool.SingletonThreadPool
|
return pool.SingletonThreadPool
|
||||||
|
|
||||||
def create_connect_args(self, url):
|
def create_connect_args(self, url):
|
||||||
opts = url.query.copy()
|
opts = dict(url.query.items())
|
||||||
util.coerce_kw_type(opts, 'connect_timeout', float)
|
util.coerce_kw_type(opts, 'connect_timeout', float)
|
||||||
util.coerce_kw_type(opts, 'detect_types', int)
|
util.coerce_kw_type(opts, 'detect_types', int)
|
||||||
util.coerce_kw_type(opts, 'max_redirects', int)
|
util.coerce_kw_type(opts, 'max_redirects', int)
|
||||||
|
|||||||
Reference in New Issue
Block a user