]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix event name
authorMike Bayer <mike_mp@zzzcomputing.com>
Wed, 2 Nov 2022 12:39:39 +0000 (08:39 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Wed, 2 Nov 2022 12:41:00 +0000 (08:41 -0400)
Change-Id: I26af2326034be07f0ebc91dfbf31d00c40acf585
References: #8717
(cherry picked from commit 7249fa4a51f20c6c62ba94241900600023662bdb)

lib/sqlalchemy/dialects/postgresql/base.py

index 6820aa60154a8166ce127ace44f05347bf9f6b30..c94c7732545dbd8e6c2291068d82653a541339ed 100644 (file)
@@ -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")