-
Notifications
You must be signed in to change notification settings - Fork 21
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
Error: SQLSTATE=58004 SQLCODE=-901 using function in prepared SQL queries #186
Comments
Thanks for the detailed bug report! I will start investigating this one when I have more cycles next week. |
Hi @Phenry-Gaia, Code sample with node v20.5.1 :
|
Hello @Phenry-Gaia I took a look at the issue and confirmed that the bug occurs on my end. I used
Looks like there is an issue processing the query internally and we will need to get the database team involved to resolve the issue. Also you should have similar spool files with the error messages above on your system. Can you kindly confirm? Please open an IBM Support ticket to the Database team so we can further resolve the issue. ref: https://www.ibm.com/mysupport/s/?language=en_US In the meantime, you can use the alternative method you have in the original issue to workaround the issue. |
Hi,
The
executeSync()
function appears to fail when the bind parameter is enclosed to a SQL function (UPPER()
in our case).The documentation report a deprecated function
bindParametersSync()
remplaced bybindParameterSync()
-> we keptbindParametersSync()
asbindParameterSync()
isn't recognise in the version we use.Node.js version: v20.5.1
idb-connector version: v1.2.19
IBM i version: 4 7
Output:
stmt.executeSync();
^
Error: SQLSTATE=58004 SQLCODE=-901 Erreur système SQL.
Describe the bug
The
executeSync()
function appears to fail when the bind parameter is enclosed to a SQL function (UPPER()
in our case).To Reproduce
Steps to reproduce the behavior:
Thank you
The text was updated successfully, but these errors were encountered: