From f5b608c56f0d0dd30bc28feff3feac6495d51129 Mon Sep 17 00:00:00 2001 From: Roland Haeder Date: Wed, 19 Aug 2015 15:01:01 +0200 Subject: [PATCH] =?utf8?q?Added=20more=20logger=20Signed-off-by:Roland=20H?= =?utf8?q?=C3=A4der=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- .../database/backend/mysql/MySqlDatabaseBackend.java | 9 +++++++++ 1 file changed, 9 insertions(+) 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); -- 2.39.5