From 55d598e7641e7e5404edac09f470f07ac5247fb4 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Wed, 2 Nov 2022 08:39:39 -0400 Subject: [PATCH] fix event name Change-Id: I26af2326034be07f0ebc91dfbf31d00c40acf585 References: #8717 (cherry picked from commit 7249fa4a51f20c6c62ba94241900600023662bdb) --- lib/sqlalchemy/dialects/postgresql/base.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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") -- 2.47.2