]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commit
Use SingletonThreadPool for in-memory SQLite database 6380/head
authorYongJieYongJie <KhooYongJie@gmx.com>
Wed, 28 Apr 2021 00:50:07 +0000 (08:50 +0800)
committerYongJieYongJie <KhooYongJie@gmx.com>
Wed, 28 Apr 2021 00:56:26 +0000 (08:56 +0800)
commit3b8024417a3a54c8269d43e40801aa4e58593540
treecba8cd6a8a7f9f7ef67cdb81a124db00bac28dfb
parent2af1b107fce34b15898e6f534097ad34cfd7d503
Use SingletonThreadPool for in-memory SQLite database

  Fix bug where NullPool is used for in-memory SQLite created using
  filename uri instead of ":memory:".

  Checks for in-memory SQLite database created using filename uri like
  "file:foo.db?mode=memory&uri=true" in addition to in-memory SQLite
  database created using the standard ":memory:".

Fixes: #6379
lib/sqlalchemy/dialects/sqlite/pysqlite.py
test/dialect/test_sqlite.py