Fix bug with async queries with incorrectly clearing result handles

This commit is contained in:
StoneT2000 2019-08-03 23:26:39 -07:00
parent 3ab2d86aef
commit 2c2b92258d
1 changed files with 2 additions and 2 deletions

View File

@ -268,7 +268,7 @@ TDengineCursor.prototype.execute_a = function execute_a (operation, options, cal
if (resCode >= 0) {
let fieldCount = cr._chandle.numFields(res2);
if (fieldCount == 0) {
cr._chandle.freeResult(res2);
}
else {
return res2;
@ -279,7 +279,7 @@ TDengineCursor.prototype.execute_a = function execute_a (operation, options, cal
throw new errors.ProgrammingError("Error occuring with use of execute_a async function. Status code was returned with failure");
}
}
this._connection._clearResultSet();
let stmt = operation;
let time = 0;