@bdkinc/knex-ibmi 0.3.6 → 0.3.8

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/dist/index.d.ts CHANGED
@@ -59,7 +59,10 @@ declare class DB2Client extends knex.Client {
59
59
  destroyRawConnection(connection: any): Promise<any>;
60
60
  _getConnectionString(connectionConfig: DB2ConnectionConfig): string;
61
61
  _query(connection: any, obj: any): Promise<any>;
62
- _stream(connection: any, obj: any, stream: any, options: {
62
+ _stream(connection: Connection, obj: {
63
+ sql: string;
64
+ bindings: any[];
65
+ }, stream: any, options: {
63
66
  fetchSize?: number;
64
67
  }): Promise<unknown>;
65
68
  transaction(container: any, config: any, outerTx: any): Knex.Transaction;
package/dist/index.js CHANGED
@@ -469,7 +469,7 @@ var DB2Client = class extends import_knex.knex.Client {
469
469
  if (!cursor.noData) {
470
470
  this.push(result);
471
471
  } else {
472
- this.push(null);
472
+ this.push(result);
473
473
  cursor.close((error2) => {
474
474
  if (error2) {
475
475
  console.log(error2);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bdkinc/knex-ibmi",
3
- "version": "0.3.6",
3
+ "version": "0.3.8",
4
4
  "description": "Knex dialect for IBMi",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",