From 0d8860e8a219bcbca13f8c071dc2ca408cb4f86a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Javier=20Jaramago=20Fern=C3=A1ndez?= Date: Fri, 28 Jul 2023 19:23:57 +0200 Subject: [PATCH] Remove old commented code for 'IsActiveTransaction' impl --- include/mysql_connection.h | 11 +---------- 1 file changed, 1 insertion(+), 10 deletions(-) diff --git a/include/mysql_connection.h b/include/mysql_connection.h index 472ba2118..9fd9a66eb 100644 --- a/include/mysql_connection.h +++ b/include/mysql_connection.h @@ -223,16 +223,7 @@ class MySQL_Connection { * connections which holds 'unknown_transaction_status' as potentially active transactions. * @return True if the connection is in potentially in an active transaction. */ - bool IsActiveTransaction(); /* { - bool ret=false; - if (mysql) { - ret = (mysql->server_status & SERVER_STATUS_IN_TRANS); - if (ret == false && (mysql)->net.last_errno) { - ret = true; - } - } - return ret; - } */ + bool IsActiveTransaction(); bool IsServerOffline(); bool IsAutoCommit(); bool AutocommitFalse_AndSavepoint();