diff --git a/src/tap/data/ResultSetTableIterator.java b/src/tap/data/ResultSetTableIterator.java index 487dde7c3810c3f5543e983ddd4aa821db8d3cf0..ef5790448f8333f38ce75e99dc62d9c1591758a9 100644 --- a/src/tap/data/ResultSetTableIterator.java +++ b/src/tap/data/ResultSetTableIterator.java @@ -731,7 +731,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()) || colType.type == DBDatatype.VARBINARY) { + else if ((translator != null && colType != null && colType.isGeometry()) || colValue instanceof byte[]) { try{ Region region = translator.translateGeometryFromDB(colValue); if (region != null)