@pi-r/postgres 0.12.5 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/client/index.js +1 -1
  2. package/package.json +2 -2
package/client/index.js CHANGED
@@ -236,7 +236,7 @@ async function executeBatchQuery(batch, options = '', outResult) {
236
236
  const cacheValue = ignoreCache === undefined ? sessionKey : Array.isArray(ignoreCache) ? { sessionKey, exclusiveOf: ignoreCache } : { sessionKey, renewCache: ignoreCache === 0 };
237
237
  let queryString = '', cacheCredential;
238
238
  if (caching && ignoreCache !== true) {
239
- queryString = Db.asString(query, true) + '_' + Db.asString(params, true) + (streamRow && item.options && isString(query) ? Db.asString(item.options, true) : '');
239
+ queryString = streamRow && item.options && isString(query) ? Db.keyForResult(query, params, item.options) : Db.keyForResult(query, params);
240
240
  cacheCredential = DbPool.sanitize(credential, sortKeys);
241
241
  if (ignoreCache !== 1) {
242
242
  const result = this.getQueryResult(source, cacheCredential, queryString, cacheValue);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-r/postgres",
3
- "version": "0.12.5",
3
+ "version": "0.13.0",
4
4
  "description": "PostgreSQL client driver for E-mc.",
5
5
  "main": "client/index.js",
6
6
  "types": "client/index.d.ts",
@@ -21,6 +21,6 @@
21
21
  "@e-mc/types": "^0.14.6",
22
22
  "pg": "^8.23.0",
23
23
  "pg-connection-string": "^2.14.0",
24
- "pg-query-stream": "^4.16.0"
24
+ "pg-query-stream": "^4.17.0"
25
25
  }
26
26
  }