Details
-
Improvement
-
Status: Closed
-
Minor
-
Resolution: Won't Fix
-
None
-
None
-
None
-
Operating System: All
Platform: PC
-
33983
Description
one of the beauties of mysql connector-J is that a stmt.toString() not just
produces the object reference string but also the sql-statement that will be
executed on the RDBMS server. (Thanks Mark Matthews!)
Recently, I went through the excercise of porting a larger jdbc code-base from
mysql to oracle. There may be many reasons to do this, but error handling in
ojdbc14.jar is not one of it
Therefore the RFE:
Not only directly pass on all values in DelegatingCallableStatement and
DelegatingPreparedStatement to the delegate, but in the set*() methods gather
enough information to be able to do something along the lines of
com.mysql.jdbc.PreparedStatement.asSql()
Sure one might say that this causes unneccessary overhead for production
environments - o.k. perhaps there needs to be a configuration flag to set
whether dbcp shall do this or operate as is.