From b6b40180cee768abe258945f17436d4053f7c194 Mon Sep 17 00:00:00 2001 From: gmantele <gmantele@ari.uni-heidelberg.de> Date: Fri, 29 Jan 2016 20:35:46 +0100 Subject: [PATCH] [TAP] Add the number of rows uploaded by addUploadedTable(...) in the final log message (i.e. event = "TABLE_CREATED"). --- src/tap/db/JDBCConnection.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tap/db/JDBCConnection.java b/src/tap/db/JDBCConnection.java index 59e2592..4d38619 100644 --- a/src/tap/db/JDBCConnection.java +++ b/src/tap/db/JDBCConnection.java @@ -1982,14 +1982,14 @@ public class JDBCConnection implements DBConnection { stmt.executeUpdate(sqlBuf.toString()); // 3. Fill the table: - fillUploadedTable(tableDef, data); + int nbUploadedRows = fillUploadedTable(tableDef, data); // Commit the transaction: commit(); // Log the end: if (logger != null) - logger.logDB(LogLevel.INFO, this, "TABLE_CREATED", "Table \"" + tableDef.getADQLName() + "\" (in DB: " + translator.getTableName(tableDef, supportsSchema) + ") created.", null); + logger.logDB(LogLevel.INFO, this, "TABLE_CREATED", "Table \"" + tableDef.getADQLName() + "\" (in DB: " + translator.getTableName(tableDef, supportsSchema) + ") created (" + nbUploadedRows + " rows).", null); return true; -- GitLab