@pi-r/mariadb 0.2.0 → 0.2.1

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 +2 -2
  2. package/package.json +1 -1
package/client/index.js CHANGED
@@ -239,7 +239,7 @@ async function executeBatchQuery(batch, options = '', outResult) {
239
239
  }
240
240
  }
241
241
  }
242
- if (onceCredential && parallel && !streamRow) {
242
+ if (onceCredential && parallel) {
243
243
  try {
244
244
  mariaDBClient = await getConnection(item, onceCredential);
245
245
  }
@@ -283,7 +283,7 @@ async function executeBatchQuery(batch, options = '', outResult) {
283
283
  }
284
284
  else {
285
285
  this.add(item, 4 /* DB_TRANSACTION.COMMIT */);
286
- resolve(!error ? this.setQueryResult(source, removePoolProperties(credential), queryString, rows, cacheValue) : rows);
286
+ resolve(!error ? this.setQueryResult(source, removePoolProperties(credential), queryString, rows, cacheValue) : rows.length ? rows : null);
287
287
  }
288
288
  }
289
289
  else {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-r/mariadb",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "MariaDB client driver for E-mc.",
5
5
  "main": "client/index.js",
6
6
  "types": "client/index.d.ts",