From d21591c20e8071c8d7575d16cfc2e0c0cf937259 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Sat, 19 Oct 2024 14:10:40 +0200 Subject: [PATCH] guard thread_protect in the same way as thread_release --- DriverManager/SQLFetch.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/DriverManager/SQLFetch.c b/DriverManager/SQLFetch.c index 531d09e..bdf0a9b 100644 --- a/DriverManager/SQLFetch.c +++ b/DriverManager/SQLFetch.c @@ -169,7 +169,10 @@ SQLRETURN SQLFetch( SQLHSTMT statement_handle ) * check states */ - thread_protect( SQL_HANDLE_STMT, statement ); + if (SQL_HANDLE_STMT != IGNORE_THREAD) + { + thread_protect( SQL_HANDLE_STMT, statement ); + } if ( statement -> state == STATE_S1 || statement -> state == STATE_S2 ||