From: Mike Bayer Date: Wed, 2 Nov 2022 12:39:39 +0000 (-0400) Subject: fix event name X-Git-Tag: rel_1_4_43~7 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=55d598e7641e7e5404edac09f470f07ac5247fb4;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fix event name Change-Id: I26af2326034be07f0ebc91dfbf31d00c40acf585 References: #8717 (cherry picked from commit 7249fa4a51f20c6c62ba94241900600023662bdb) --- diff --git a/lib/sqlalchemy/dialects/postgresql/base.py b/lib/sqlalchemy/dialects/postgresql/base.py index 6820aa6015..c94c773254 100644 --- a/lib/sqlalchemy/dialects/postgresql/base.py +++ b/lib/sqlalchemy/dialects/postgresql/base.py @@ -274,7 +274,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): dbapi_connection.execute("CLOSE ALL") dbapi_connection.execute("RESET ALL") dbapi_connection.execute("DISCARD TEMP")