From: Mike Bayer Date: Wed, 2 Nov 2022 12:39:39 +0000 (-0400) Subject: fix event name X-Git-Tag: rel_2_0_0b3~14 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7249fa4a51f20c6c62ba94241900600023662bdb;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fix event name Change-Id: I26af2326034be07f0ebc91dfbf31d00c40acf585 References: #8717 --- diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py index 482e36594a..a908ed6b78 100644 --- a/lib/sqlalchemy/dialects/postgresql/base.py +++ b/lib/sqlalchemy/dialects/postgresql/base.py @@ -277,7 +277,7 @@ will remain consistent with the state of the transaction:: @event.listens_for(postgresql_engine, "reset") - def _reset_mssql(dbapi_connection, connection_record, reset_state): + def _reset_postgresql(dbapi_connection, connection_record, reset_state): if not reset_state.terminate_only: dbapi_connection.execute("CLOSE ALL") dbapi_connection.execute("RESET ALL")