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 26c8825 commit d331213Copy full SHA for d331213
ext/tiny_tds/client.c
@@ -347,10 +347,10 @@ static VALUE rb_tinytds_execute(VALUE self, VALUE sql)
347
if (cwrap->userdata->dbsql_sent) {
348
// if we do not run dbsqlok, FreeTDS will throw an error
349
// Attempt to initiate a new Adaptive Server operation with results pending
350
- // note that both of these operations are blocking as we do not have access to these
351
- // "NOGVL" methods from result.c
352
if (cwrap->userdata->dbsqlok_sent == 0) {
353
- dbsqlok(cwrap->client);
+ if(nogvl_dbsqlok(cwrap->client) != SUCCEED) {
+ rb_raise(cTinyTdsError, "unable to acknowledge previous results with server");
+ }
354
}
355
356
dbcancel(cwrap->client);
0 commit comments