-
Notifications
You must be signed in to change notification settings - Fork 150
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
executeNonQuerySync Wrong number of parameters. SQLSTATE=07001 #595
Comments
@debrajo Currently executeNonQuerySync() ignores any parameters passed to it. So, no parameter is binded and hence error by executeNonQuerySync().
Above is a work around. You can hitting this issue due to some missing code. Code for executeNonQuerySync() is missing in |
* doc: Docker Linux Container instructions * support for install --debug option on windows * fix: blob data corruption issue #582 * doc: update doc for executeNonQuerySync API, issue #583 * force push connection to the queue when poolSize breaches maxPool boundry (#581) * Support for node v12 on z/OS, and fix some test cases for z/OS (#586) * fix: update unzipper version, issue #588 * fix: use v8::Isolate for nodev >= 11 * fix: ignore sqlcode 100 by executeNonQuery, issue #591 * fix: add executeNonQuerySync in odbc.js issue #595
* doc: update for issue #593 (Bimal Jha) * fix: update windows binary using latest code (Bimal Jha) * fix: for memory leak issue #576 (Bimal Jha) * fix: update windows binary for vscode 1.40.x (Bimal Jha) * update windows binaries (Bimal Jha) * fix: add executeNonQuerySync in odbc.js issue #595 (Bimal Jha) * fix: ignore sqlcode 100 by executeNonQuery, issue #591 (Bimal Jha) * fix: use v8::Isolate for nodev >= 11 (Bimal Jha) * fix: update unzipper version, issue #588 (Bimal Jha) * Support for node v12 on z/OS, and fix some test cases for z/OS (#586) (alexcfyung) * force push connection to the queue when poolSize breaches maxPool boundry (#581) (ashutoshrnjn) * doc: update doc for executeNonQuerySync API, issue #583 (Bimal Jha) * fix: blob data corruption issue #582 (Bimal Jha) * support for install --debug option on windows (Priyanka Manoharan) * doc: Docker Linux Container instructions (Bimal Jha)
I've been trying to find correct coding syntax to perform a beginTransaction, prepareSync insert SQL with 2 executeNonQuerySync with a error / row checking for a commit/rollback. I've tried both beginTransaction and beginTransactionSync and I continued to receive the error from title.
I've reproduced the error to this small code. Any help/direction would be appreciated.
node.js : v10.16.0
npm : 6.9.0
ibm_db : [email protected]
copy db2consv_zs.lic node_modules\ibm_db\installer\clidriver\license
executeNonQuery.js
Console Log:
node executeNonQuery
`
The text was updated successfully, but these errors were encountered: