Skip to content

Commit

Permalink
guard thread_protect in the same way as thread_release
Browse files Browse the repository at this point in the history
  • Loading branch information
chipitsine committed Oct 19, 2024
1 parent 2234e8b commit d461af7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion DriverManager/SQLFetch.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 ||
Expand Down

0 comments on commit d461af7

Please sign in to comment.