Closed awharn closed 1 year ago
@awharn I just tested it using node v18.16.0 and it is working fine. I do not see any issue. Please run below commands from your command prompt and share the complete output below commands here.
cd C:\Users\WDAGUtilityAccount\test\node_modules\ibm_db
npm install > inst.txt
node test\test-basic-test.js
Please attach generated inst.txt
file here along with output of test program. Thanks.
@bimalkjha
Regular npm install: inst.txt
Regular npm install with foreground scripts argument: inst2.txt
Output of the commands: output.txt
@awharn Ok. So, now I am able to repro the issue.
Workaround is to unzip ibm_db\build.zip
file in some other location and then copy build/Release/odbc_bindings.node.18.12.1
file from unzipped dir to ibm_db\build\Release
and rename it to odbc_bindings.node
. It works for me.
I checked both odbc_bindings.node
- one that throws error and one which work. Both are exactly same and do not see any difference. So, I am unable to understand the reason for error as of now. I'll keep checking. Thanks.
When I opened the odbc_bindings.node post install and unzipped using 7zip, both has same size but different content. It seems unzipper
package of npmjs is corrupting the odbc_bindings.node file post unzip using newer versions of nodejs. Still investigating ...
@awharn Ok. So, now I am able to repro the issue. Workaround is to unzip
ibm_db\build.zip
file in some other location and then copybuild/Release/odbc_bindings.node.18.12.1
file from unzipped dir toibm_db\build\Release
and rename it toodbc_bindings.node
. It works for me. I checked bothodbc_bindings.node
- one that throws error and one which work. Both are exactly same and do not see any difference. So, I am unable to understand the reason for error as of now. I'll keep checking. Thanks.
That works for me! Hope it will be fixed
Operating System Name: Windows 10
db2level output from clidriver if in use: Unknown
Target Db2 Server Version: N/A
node.js Version: 18.16.0
ibm_db version: 3.1.0
For non-Windows, output of below commands: uname uname -m
Value of below environment variables if set: IBM_DB_HOME: Not Set PATH: Not Set LIB/LD_LIBRARY_PATH/DYLD_LIBRARY_PATH: Not Set
Test script to reproduce the problem.
For installation related issue, complete output of
npm install ibm_db
command.For connection related issue, update database connection info in
ibm_db/test/config.testConnectionStrings.json
file and share complete output of below commands:Steps to Reproduce:
Output of
npm install ibm_db
:Test Script to Reproduce:
Test Script Output:
Other notes: It appears that the downloaded odbc_bindings.node file has different contents between Node versions 18.15.0 and 18.16.0.