Commit d470f97199a54648b8419b4412359987f814f287
1 parent
d393913e
Exists in
master
BugFix: Do not append tables when sending a new query (#19)
Showing
1 changed file
with
5 additions
and
1 deletions
Show diff stats
src/main/java/eu/omp/irap/vespa/epntapclient/epntap/EpnTapController.java
@@ -109,7 +109,11 @@ public abstract class EpnTapController { | @@ -109,7 +109,11 @@ public abstract class EpnTapController { | ||
109 | LOGGER.info("Sending query(ies) on " + StringJoiner.join(servicesUrls)); | 109 | LOGGER.info("Sending query(ies) on " + StringJoiner.join(servicesUrls)); |
110 | for (int i = 0; i < servicesUrls.size(); i++) { | 110 | for (int i = 0; i < servicesUrls.size(); i++) { |
111 | String query = getRequestCtrl().getQuery(services.getTableNames().get(i)); | 111 | String query = getRequestCtrl().getQuery(services.getTableNames().get(i)); |
112 | - getResultsCtrl().appendVOTable(servicesUrls.get(i), query); | 112 | + if (i == 0) { |
113 | + getResultsCtrl().newVOTable(servicesUrls.get(i), query); | ||
114 | + } else { | ||
115 | + getResultsCtrl().appendVOTable(servicesUrls.get(i), query); | ||
116 | + } | ||
113 | } | 117 | } |
114 | 118 | ||
115 | } | 119 | } |