From 2eafc001ec6239847b4edde04451044242170ff7 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fran=C3=A7ois-Michel=20L=27Heureux?= Date: Fri, 23 May 2025 16:23:53 -0400 Subject: [PATCH] Doc: Update connection / reconnecting_engine (#12617) (cherry picked from commit 4cac1c6002f805879188c21fb4c75b7406d743f3) --- doc/build/faq/connections.rst | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/doc/build/faq/connections.rst b/doc/build/faq/connections.rst index 1f3bf1ba14..3177d7ea92 100644 --- a/doc/build/faq/connections.rst +++ b/doc/build/faq/connections.rst @@ -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, -- 2.47.2