Skip to content

Commit 09a9d1b

Browse files
committed
refactor: idb-connector transport to use bindParameters
1 parent cb5d077 commit 09a9d1b

File tree

3 files changed

+5
-11
lines changed

3 files changed

+5
-11
lines changed

lib/transports/idbTransport.js

+1-7
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,6 @@ function idbCall(config, xmlInput, cb) {
6161
// eslint-disable-next-line new-cap
6262
const stmt = new idb.dbstmt(conn);
6363

64-
const parameters = [
65-
[ipc, idb.IN, idb.CHAR],
66-
[ctl, idb.IN, idb.CHAR],
67-
[xmlInput, idb.IN, idb.CLOB],
68-
];
69-
7064
// Before returning to caller, we must clean up
7165
const done = (err, val) => {
7266
stmt.close();
@@ -81,7 +75,7 @@ function idbCall(config, xmlInput, cb) {
8175
done(prepareError, null);
8276
return;
8377
}
84-
stmt.bindParam(parameters, (bindError) => {
78+
stmt.bindParameters([ipc, ctl, xmlInput], (bindError) => {
8579
if (bindError) {
8680
done(bindError, null);
8781
return;

package-lock.json

+3-3
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
"standard-version": "^9.0.0"
5555
},
5656
"optionalDependencies": {
57-
"idb-connector": "^1.2.2",
57+
"idb-connector": "^1.2.10",
5858
"idb-pconnector": "^1.0.7",
5959
"ssh2": "^0.8.2",
6060
"odbc": "^2.1.3"

0 commit comments

Comments
 (0)