flysa / log4jdbc

Automatically exported from code.google.com/p/log4jdbc
0 stars 0 forks source link

Support by-name parameters #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It would be nice if CallableStatement parameters set by name instead of
index would be logged as well. But is this even possible? For example, this
is the SQL I use to call procedures, but I use the by name setters.

For example: { ?=call myfunc(?,?) }

The parameters could be logged on a separate line perhaps?

Original issue reported on code.google.com by vill...@gmail.com on 8 Jun 2009 at 7:35

GoogleCodeExporter commented 8 years ago
http://stackoverflow.com/questions/2309970/named-parameters-in-jdbc
JDBC does not support named parameters. Unless you are bound to using plain JDBC
We use oracle 
extension to support named parameters.
See https://code.google.com/p/log4jdbc/issues/detail?id=60
It may help

Original comment by MatveevA...@gmail.com on 22 May 2013 at 11:52