You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem:
ibm_db_dbi does not provide any Connection and Statement Error API's to get SQLSTATE or descriptive error message appropriate for an application error log . It has to be handled programatically. ibm_db has
ibm_db.conn_error - Retrieves the SQLSTATE for connection Error.
ibm_db.conn_errormsg - Retrieves a descriptive error message appropriate for an application error log
ibm_db.stmt_error - Retrieves the SQLSTATE for sql execution Error.
ibm_db.stmt_errormsg - Retrieves a descriptive error message appropriate for an application error log
Solution:
Kindly please introduce Connection and Statement Error API's to get SQLSTATE or descriptive error message appropriate for an application error log in ibm_db_dbi.