]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Doc: Update connection / reconnecting_engine (#12617)
authorFrançois-Michel L'Heureux <fm.lheureux@gmail.com>
Fri, 23 May 2025 20:23:53 +0000 (16:23 -0400)
committerFederico Caselli <cfederico87@gmail.com>
Fri, 23 May 2025 20:24:52 +0000 (22:24 +0200)
(cherry picked from commit 4cac1c6002f805879188c21fb4c75b7406d743f3)

doc/build/faq/connections.rst

index 1f3bf1ba1401d82a9a84feb0456a81680576e9fc..3177d7ea9268bc94729819c4548e65c6fd3b2885 100644 (file)
@@ -258,7 +258,9 @@ statement executions::
                     fn(cursor_obj, statement, context=context, *arg)
                 except engine.dialect.dbapi.Error as raw_dbapi_err:
                     connection = context.root_connection
-                    if engine.dialect.is_disconnect(raw_dbapi_err, connection, cursor_obj):
+                    if engine.dialect.is_disconnect(
+                        raw_dbapi_err, connection.connection.dbapi_connection, cursor_obj
+                    ):
                         engine.logger.error(
                             "disconnection error, attempt %d/%d",
                             retry + 1,