Is there a way to trap error 266 inside JDBC or inside SQL by wrapping the exec statement somehow?
We strive to develop security around stored procedures that exit with a transaction that is open in the usual way. This helps prevent a programmer error that can cause significant problems in conjunction with the connection pool.
source
share