From 81f8dbd316370e321349a5b54cd1bc33299a6427 Mon Sep 17 00:00:00 2001 From: vforchi <vforchi@users.noreply.github.com> Date: Thu, 9 Feb 2017 15:02:50 +0100 Subject: [PATCH] Added workaround to interpret functions as regions --- src/tap/data/ResultSetTableIterator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/tap/data/ResultSetTableIterator.java b/src/tap/data/ResultSetTableIterator.java index 5bcbbfc..0f2e10c 100644 --- a/src/tap/data/ResultSetTableIterator.java +++ b/src/tap/data/ResultSetTableIterator.java @@ -716,7 +716,7 @@ public class ResultSetTableIterator implements TableIterator { else if (colType != null && colValue != null && colType.type == DBDatatype.CHAR && (colType.length == 1 || colType.length <= 0) && colValue instanceof String) colValue = ((String)colValue).charAt(0); // if the column value is a geometrical object, it must be serialized in STC-S: - else if (translator != null && colType != null && colType.isGeometry()){ + else if ((translator != null && colType != null && colType.isGeometry()) || colType.type == DBDatatype.VARBINARY) { try{ Region region = translator.translateGeometryFromDB(colValue); if (region != null) -- GitLab