From f79891758013d6e00545d71164636e509a06130f Mon Sep 17 00:00:00 2001 From: gmantele <gmantele@ari.uni-heidelberg.de> Date: Wed, 5 Jul 2017 16:20:40 +0200 Subject: [PATCH] [TAP] Set the VOTable '<TABLE name="..."' to the query/job ID prefixed by 'result_'. --- src/tap/formatter/VOTableFormat.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/tap/formatter/VOTableFormat.java b/src/tap/formatter/VOTableFormat.java index 923349e..37c185b 100644 --- a/src/tap/formatter/VOTableFormat.java +++ b/src/tap/formatter/VOTableFormat.java @@ -16,7 +16,7 @@ package tap.formatter; * You should have received a copy of the GNU Lesser General Public License * along with TAPLibrary. If not, see <http://www.gnu.org/licenses/>. * - * Copyright 2012-2015 - UDS/Centre de DonnĂ©es astronomiques de Strasbourg (CDS) + * Copyright 2012-2017 - UDS/Centre de DonnĂ©es astronomiques de Strasbourg (CDS) * Astronomisches Rechen Institut (ARI) */ @@ -83,7 +83,7 @@ import adql.db.DBType.DBDatatype; * </p> * * @author Grégory Mantelet (CDS;ARI) - * @version 2.1 (11/2015) + * @version 2.1 (07/2017) */ public class VOTableFormat implements OutputFormat { @@ -331,6 +331,7 @@ public class VOTableFormat implements OutputFormat { /* Turns the result set into a table. */ LimitedStarTable table = new LimitedStarTable(queryResult, colInfos, execReport.parameters.getMaxRec(), thread); + table.setName("result_"+execReport.jobID); /* Prepares the object that will do the serialization work. */ VOSerializer voser = VOSerializer.makeSerializer(votFormat, votVersion, table); -- GitLab