From 6f0d356ef73ddcabff43715f8c5c78e6e33aa80c Mon Sep 17 00:00:00 2001 From: sfc-gh-ext-simba-jy Date: Thu, 21 Sep 2023 19:12:45 -0700 Subject: [PATCH] fixed a format and added DTO on the both places --- lib/connection/result/result.js | 2 +- lib/connection/statement.js | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/connection/result/result.js b/lib/connection/result/result.js index 9d55a0e6c..3534932e0 100644 --- a/lib/connection/result/result.js +++ b/lib/connection/result/result.js @@ -126,7 +126,7 @@ function Result(options) { this._statement, this._services); - this.getQueryContext = function() { + this.getQueryContext = function () { return this._queryContext; } diff --git a/lib/connection/statement.js b/lib/connection/statement.js index dd65640e3..a8ec5b5cf 100644 --- a/lib/connection/statement.js +++ b/lib/connection/statement.js @@ -1403,6 +1403,10 @@ this.sendRequest = function (statementContext, onResultAvailable) json.isInternal = statementContext.internal; } + if(!statementContext.disableQueryContextCache){ + json.queryContextDTO = statementContext.services.sf.getQueryContextDTO(); + } + var options = { method: 'POST',