Commit d470f97199a54648b8419b4412359987f814f287

Authored by Nathanael Jourdane
1 parent d393913e
Exists in master

BugFix: Do not append tables when sending a new query (#19)

src/main/java/eu/omp/irap/vespa/epntapclient/epntap/EpnTapController.java
... ... @@ -109,7 +109,11 @@ public abstract class EpnTapController {
109 109 LOGGER.info("Sending query(ies) on " + StringJoiner.join(servicesUrls));
110 110 for (int i = 0; i < servicesUrls.size(); i++) {
111 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 }
... ...