@bdkinc/knex-ibmi 0.3.14 → 0.3.16

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/dist/index.js +3 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -462,7 +462,6 @@ var DB2Client = class extends import_knex.knex.Client {
462
462
  fetchSize: options?.fetchSize || 1
463
463
  },
464
464
  (error, cursor) => {
465
- const printError = this.printError;
466
465
  if (error) {
467
466
  this.printError(JSON.stringify(error, null, 2));
468
467
  }
@@ -475,6 +474,9 @@ var DB2Client = class extends import_knex.knex.Client {
475
474
  }
476
475
  if (!cursor.noData) {
477
476
  this.push(result);
477
+ } else {
478
+ this.push(result);
479
+ cursor.close();
478
480
  }
479
481
  });
480
482
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bdkinc/knex-ibmi",
3
- "version": "0.3.14",
3
+ "version": "0.3.16",
4
4
  "description": "Knex dialect for IBMi",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",