mirror of
https://github.com/zulip/zulip.git
synced 2025-11-10 17:07:07 +00:00
python: Upgrade SQLAlchemy from 1.3.24 to 1.4.23.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
6bfebd5558
commit
817146c28b
@@ -19,7 +19,6 @@ class NonClosingPool(sqlalchemy.pool.NullPool):
|
||||
return self.__class__(
|
||||
creator=self._creator, # type: ignore[attr-defined] # implementation detail
|
||||
recycle=self._recycle, # type: ignore[attr-defined] # implementation detail
|
||||
use_threadlocal=self._use_threadlocal, # type: ignore[attr-defined] # implementation detail
|
||||
reset_on_return=self._reset_on_return, # type: ignore[attr-defined] # implementation detail
|
||||
echo=self.echo,
|
||||
logging_name=self._orig_logging_name, # type: ignore[attr-defined] # implementation detail
|
||||
@@ -42,7 +41,7 @@ def get_sqlalchemy_connection() -> sqlalchemy.engine.base.Connection:
|
||||
"postgresql://",
|
||||
creator=get_dj_conn,
|
||||
poolclass=NonClosingPool,
|
||||
pool_reset_on_return=False,
|
||||
pool_reset_on_return=None,
|
||||
)
|
||||
sa_connection = sqlalchemy_engine.connect()
|
||||
sa_connection.execution_options(autocommit=False)
|
||||
|
||||
Reference in New Issue
Block a user