From: Roland Haeder Date: Wed, 19 Aug 2015 13:01:01 +0000 (+0200) Subject: Added more logger X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=f5b608c56f0d0dd30bc28feff3feac6495d51129;p=jcore.git Added more logger Signed-off-by:Roland Häder --- diff --git a/src/org/mxchange/jcore/database/backend/mysql/MySqlDatabaseBackend.java b/src/org/mxchange/jcore/database/backend/mysql/MySqlDatabaseBackend.java index b081ca8..81f8c95 100644 --- a/src/org/mxchange/jcore/database/backend/mysql/MySqlDatabaseBackend.java +++ b/src/org/mxchange/jcore/database/backend/mysql/MySqlDatabaseBackend.java @@ -202,6 +202,9 @@ public class MySqlDatabaseBackend extends BaseDatabaseBackend implements Databas // Prepare statement instance PreparedStatement statement = this.getPreparedStatement(query, values); + // Debug message + this.getLogger().debug(MessageFormat.format("statement={0}", statement)); + // Run it int status = statement.executeUpdate(); @@ -287,9 +290,15 @@ public class MySqlDatabaseBackend extends BaseDatabaseBackend implements Databas // Get a prepared instance PreparedStatement statement = this.getPreparedStatement(query, values); + // Debug message + this.getLogger().debug(MessageFormat.format("statement={0}", statement)); + // Run it ResultSet resultSet = statement.executeQuery(); + // Debug message + this.getLogger().debug(MessageFormat.format("resultSet={0}", resultSet)); + // The result set needs to be transformed into Result, so initialize a result instance here Result result = this.getFrontend().getResultFromSet(resultSet);