From d470f97199a54648b8419b4412359987f814f287 Mon Sep 17 00:00:00 2001 From: Nathanael Jourdane Date: Thu, 9 Jun 2016 12:44:19 +0200 Subject: [PATCH] BugFix: Do not append tables when sending a new query (#19) --- src/main/java/eu/omp/irap/vespa/epntapclient/epntap/EpnTapController.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main/java/eu/omp/irap/vespa/epntapclient/epntap/EpnTapController.java b/src/main/java/eu/omp/irap/vespa/epntapclient/epntap/EpnTapController.java index 26d043f..794037d 100644 --- a/src/main/java/eu/omp/irap/vespa/epntapclient/epntap/EpnTapController.java +++ b/src/main/java/eu/omp/irap/vespa/epntapclient/epntap/EpnTapController.java @@ -109,7 +109,11 @@ public abstract class EpnTapController { LOGGER.info("Sending query(ies) on " + StringJoiner.join(servicesUrls)); for (int i = 0; i < servicesUrls.size(); i++) { String query = getRequestCtrl().getQuery(services.getTableNames().get(i)); - getResultsCtrl().appendVOTable(servicesUrls.get(i), query); + if (i == 0) { + getResultsCtrl().newVOTable(servicesUrls.get(i), query); + } else { + getResultsCtrl().appendVOTable(servicesUrls.get(i), query); + } } } -- libgit2 0.21.2