nodejs-idb-connector icon indicating copy to clipboard operation
nodejs-idb-connector copied to clipboard

Error SQLSTATE=38501 SQLCODE=-443 does not return the true message

Open Didier68 opened this issue 3 years ago • 1 comments

Hi, When executing from Node a system command like dbstmt.exec( "CALL QCMDEXC('ENDSBS xxxxx OPTION(*IMMED)' )" ) , where "xxxx" doesn't exists :

  • with the idb-connector, i obtain a generic error message Trigger program or external routine detected an error. SQLSTATE=38501 SQLCODE=-443

  • with a OLEDB connector, I obtain a more concise error message CPF1054: No subsystem xxxxx active

In my code, I found an old test on this "CPF1054" string, and I'm pretty sure I got this kind of information in a previous version of the idb-connector.

Is it a design choice? Is it possible to find these details in the error messages?

  • Node.js version: 10.
  • idb-connector version: 1.2.10

Thanks

Didier68 avatar Apr 20 '21 16:04 Didier68

:wave: Hi! This issue has been marked stale due to inactivity. If no further activity occurs, it will automatically be closed.

github-actions[bot] avatar Oct 28 '22 02:10 github-actions[bot]