Skip to content

Commit

Permalink
Use nogvl_dbsqlok
Browse files Browse the repository at this point in the history
  • Loading branch information
andyundso committed Oct 16, 2024
1 parent 46b50ba commit 2af3303
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion ext/tiny_tds/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,9 @@ static VALUE rb_tinytds_execute(VALUE self, VALUE sql) {
// note that both of these operations are blocking as we do not have access to these
// "NOGVL" methods from result.c
if (cwrap->userdata->dbsqlok_sent == 0) {
dbsqlok(cwrap->client);
if(nogvl_dbsqlok(cwrap->client) != SUCCEED) {
rb_raise(cTinyTdsError, "unable to acknowledge previous results with server");
}
}

dbcancel(cwrap->client);
Expand Down

0 comments on commit 2af3303

Please sign in to comment.