@pi-r/oracle 0.12.2 → 0.12.3

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.
package/client/index.js CHANGED
@@ -310,7 +310,7 @@ async function executeBatchQuery(batch, options = '', outResult) {
310
310
  }
311
311
  const executeOptions = { outFormat: oracledb.OUT_FORMAT_OBJECT, ...clientOptions, resultSet: false, autoCommit: true };
312
312
  commandType = this.commandType.SELECT;
313
- if (streamRow) {
313
+ if (streamRow && isString(query)) {
314
314
  const rows = [];
315
315
  const processRow = typeof streamRow === 'function' ? streamRow : null;
316
316
  const stream = client.queryStream(query, params || [], executeOptions);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@pi-r/oracle",
3
- "version": "0.12.2",
3
+ "version": "0.12.3",
4
4
  "description": "Oracle client driver for E-mc.",
5
5
  "main": "client/index.js",
6
6
  "types": "client/index.d.ts",
@@ -17,8 +17,8 @@
17
17
  "license": "MIT",
18
18
  "homepage": "https://github.com/anpham6/pi-r#readme",
19
19
  "dependencies": {
20
- "@e-mc/db": "^0.14.3",
21
- "@e-mc/types": "^0.14.3",
20
+ "@e-mc/db": "^0.14.4",
21
+ "@e-mc/types": "^0.14.4",
22
22
  "oracledb": "^6.10.0"
23
23
  }
24
24
  }
package/types/index.d.ts CHANGED
@@ -13,7 +13,7 @@ export const enum POOL_STATUS {
13
13
  RECONFIGURING = 6003
14
14
  }
15
15
 
16
- export interface OracleDataSource extends DbDataSource<string, ExecuteOptions, unknown, OracleCredential, string>, ExecuteAction<BindParameters> {
16
+ export interface OracleDataSource extends DbDataSource<string | object, ExecuteOptions, unknown, OracleCredential, string>, ExecuteAction<BindParameters> {
17
17
  source: "oracle";
18
18
  }
19
19