Mercurial > dive4elements > river
diff flys-aft/src/main/java/de/intevation/db/SymbolicStatement.java @ 5480:7a68967ca72a
AFT/DIPS: Small fixes and workarounds for Oracle DB problems.
author | Sascha L. Teichmann <teichmann@intevation.de> |
---|---|
date | Wed, 27 Mar 2013 20:19:09 +0100 |
parents | f939e1e6cfa4 |
children |
line wrap: on
line diff
--- a/flys-aft/src/main/java/de/intevation/db/SymbolicStatement.java Wed Mar 27 18:48:28 2013 +0100 +++ b/flys-aft/src/main/java/de/intevation/db/SymbolicStatement.java Wed Mar 27 20:19:09 2013 +0100 @@ -143,14 +143,23 @@ } public boolean execute() throws SQLException { + if (log.isDebugEnabled()) { + log.debug("execute: " + compiled); + } return stmnt.execute(); } public ResultSet executeQuery() throws SQLException { + if (log.isDebugEnabled()) { + log.debug("query: " + compiled); + } return stmnt.executeQuery(); } public int executeUpdate() throws SQLException { + if (log.isDebugEnabled()) { + log.debug("update: " + compiled); + } return stmnt.executeUpdate(); }