Skip to content
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=02000 SQLCODE=100 #146

Closed
staplFred opened this issue Jul 21, 2021 · 1 comment · Fixed by #148
Closed

Error SQLSTATE=02000 SQLCODE=100 #146

staplFred opened this issue Jul 21, 2021 · 1 comment · Fixed by #148
Labels
bug Something isn't working

Comments

@staplFred
Copy link

Regarding this closed issue:

I am having the same issue with the execSync function. I believe the same fix needs to be applied to it.

This similar snippit reproduces the issue.

const {dbconn, dbstmt} = require('idb-connector');  
const sSql = 'UPDATE MY.TABLE SET COL0=0 WHERE COL1 is not null'; 
const connection = new dbconn(); 
connection.conn('*LOCAL'); 
const statement = new dbstmt(connection); 
const results = statement.execSync(sql) 
statement.close(); 
console.log('results: ', results) 

Thanks.

@staplFred
Copy link
Author

Can we please get this tagged for a new release? Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant