We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
nogvl_dbsqlok
1 parent 7a0562e commit 30f0541Copy full SHA for 30f0541
ext/tiny_tds/client.c
@@ -305,10 +305,10 @@ static VALUE rb_tinytds_execute(VALUE self, VALUE sql) {
305
if (cwrap->userdata->dbsql_sent) {
306
// if we do not run dbsqlok, FreeTDS will throw an error
307
// Attempt to initiate a new Adaptive Server operation with results pending
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) {
+ rb_raise(cTinyTdsError, "unable to acknowledge previous results with server");
+ }
312
}
313
314
dbcancel(cwrap->client);
0 commit comments