Commit b6b40180 authored by gmantele's avatar gmantele
Browse files

[TAP] Add the number of rows uploaded by addUploadedTable(...) in the final

log message (i.e. event = "TABLE_CREATED").
parent 4c36c403
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;