node-firebird 2.14.2 → 2.14.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.
@@ -1422,9 +1422,13 @@ class Connection {
1422
1422
  }
1423
1423
  var self = this;
1424
1424
  var op = const_1.default.op_execute;
1425
- if (this.accept.protocolVersion >= const_1.default.PROTOCOL_VERSION13 &&
1426
- statement.type === const_1.default.isc_info_sql_stmt_exec_procedure &&
1425
+ if (statement.type === const_1.default.isc_info_sql_stmt_exec_procedure &&
1427
1426
  statement.output.length) {
1427
+ // op_execute2 returns output parameters via op_sql_response for all
1428
+ // supported protocol versions (including V10/V11/V12 / Firebird 1.5–2.5).
1429
+ // Using op_execute for procedures with outputs on legacy protocols caused
1430
+ // the fallback fetch path to return 0 rows and deliver undefined to the
1431
+ // caller (issue #424).
1428
1432
  op = const_1.default.op_execute2;
1429
1433
  }
1430
1434
  function PrepareParams(params, input, callback) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-firebird",
3
- "version": "2.14.2",
3
+ "version": "2.14.3",
4
4
  "description": "Pure JavaScript and Asynchronous Firebird client for Node.js.",
5
5
  "keywords": [
6
6
  "firebird",
@@ -1710,10 +1710,14 @@ class Connection {
1710
1710
 
1711
1711
  var op = Const.op_execute;
1712
1712
  if (
1713
- this.accept.protocolVersion >= Const.PROTOCOL_VERSION13 &&
1714
1713
  statement.type === Const.isc_info_sql_stmt_exec_procedure &&
1715
1714
  statement.output.length
1716
1715
  ) {
1716
+ // op_execute2 returns output parameters via op_sql_response for all
1717
+ // supported protocol versions (including V10/V11/V12 / Firebird 1.5–2.5).
1718
+ // Using op_execute for procedures with outputs on legacy protocols caused
1719
+ // the fallback fetch path to return 0 rows and deliver undefined to the
1720
+ // caller (issue #424).
1717
1721
  op = Const.op_execute2;
1718
1722
  }
1719
1723