From 2c2b92258d6c3a686543b3cd3ad202ca91e33c79 Mon Sep 17 00:00:00 2001 From: StoneT2000 Date: Sat, 3 Aug 2019 23:26:39 -0700 Subject: [PATCH] Fix bug with async queries with incorrectly clearing result handles --- src/connector/nodejs/nodetaos/cursor.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/connector/nodejs/nodetaos/cursor.js b/src/connector/nodejs/nodetaos/cursor.js index 52b13ab7a7..092c19dfd4 100644 --- a/src/connector/nodejs/nodetaos/cursor.js +++ b/src/connector/nodejs/nodetaos/cursor.js @@ -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;