We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
nogvl_dbsqlok
1 parent 46b50ba commit 2af3303Copy full SHA for 2af3303
ext/tiny_tds/client.c
@@ -308,7 +308,9 @@ static VALUE rb_tinytds_execute(VALUE self, VALUE sql) {
308
// note that both of these operations are blocking as we do not have access to these
309
// "NOGVL" methods from result.c
310
if (cwrap->userdata->dbsqlok_sent == 0) {
311
- dbsqlok(cwrap->client);
+ if(nogvl_dbsqlok(cwrap->client) != SUCCEED) {
312
+ rb_raise(cTinyTdsError, "unable to acknowledge previous results with server");
313
+ }
314
}
315
316
dbcancel(cwrap->client);
0 commit comments