提交 2c2b9225 编写于 作者: S StoneT2000

Fix bug with async queries with incorrectly clearing result handles

上级 3ab2d86a
...@@ -268,7 +268,7 @@ TDengineCursor.prototype.execute_a = function execute_a (operation, options, cal ...@@ -268,7 +268,7 @@ TDengineCursor.prototype.execute_a = function execute_a (operation, options, cal
if (resCode >= 0) { if (resCode >= 0) {
let fieldCount = cr._chandle.numFields(res2); let fieldCount = cr._chandle.numFields(res2);
if (fieldCount == 0) { if (fieldCount == 0) {
cr._chandle.freeResult(res2);
} }
else { else {
return res2; return res2;
...@@ -279,7 +279,7 @@ TDengineCursor.prototype.execute_a = function execute_a (operation, options, cal ...@@ -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"); 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 stmt = operation;
let time = 0; let time = 0;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册