From d461af7720c2ec96ae3402e84c049c4fa374af89 Mon Sep 17 00:00:00 2001 From: Ilya Shipitsin Date: Sat, 19 Oct 2024 13:54:12 +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..ecff6cb 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 ( level != IGNORE_THREAD =-1) + { + thread_protect( SQL_HANDLE_STMT, statement ); + } if ( statement -> state == STATE_S1 || statement -> state == STATE_S2 ||