Skip to content
Snippets Groups Projects
Commit 3952a24a authored by vforchi's avatar vforchi
Browse files

removed workaround to handle geometries after it was fixed properly

parent 2ad2007f
No related branches found
No related tags found
No related merge requests found
...@@ -734,7 +734,7 @@ public class ResultSetTableIterator implements TableIterator { ...@@ -734,7 +734,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) else if (colType != null && colValue != null && colType.type == DBDatatype.CHAR && (colType.length == 1 || colType.length <= 0) && colValue instanceof String)
colValue = ((String)colValue).charAt(0); colValue = ((String)colValue).charAt(0);
// if the column value is a geometrical object, it must be serialized in STC-S: // if the column value is a geometrical object, it must be serialized in STC-S:
else if ((translator != null && colType != null && colType.isGeometry()) || colValue instanceof byte[]) { else if (translator != null && colType != null && colType.isGeometry()) {
try{ try{
Region region = translator.translateGeometryFromDB(colValue); Region region = translator.translateGeometryFromDB(colValue);
if (region != null) if (region != null)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment