<Connecting Spring Boot application to a DB2 z/VM ...
# stackoverflow
r
Connecting Spring Boot application to a DB2 z/VM database - determine SQLCODE for error handling I connect to a DB2 z/VM database (aka IBM Db2 Server for VSE and VM) with a Spring Boot application via JDBC (jcc). Reading data and inserting data works. But how can I read out the SQLCODE reasonably? I'm trying to parse the exception string, but that doesn't seem to be a good solution. fun insertRow() { val namedParameters: MutableMap = HashMap() namedParameters["number_field"] = 42 namedParameters["text_field"] = "bar" namedParameters["date_field"] =...