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.
- package/lib/wire/connection.js +6 -2
- package/package.json +1 -1
- package/src/wire/connection.ts +5 -1
package/lib/wire/connection.js
CHANGED
|
@@ -1422,9 +1422,13 @@ class Connection {
|
|
|
1422
1422
|
}
|
|
1423
1423
|
var self = this;
|
|
1424
1424
|
var op = const_1.default.op_execute;
|
|
1425
|
-
if (
|
|
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
package/src/wire/connection.ts
CHANGED
|
@@ -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
|
|