DBZ-1969 Update convertLtreeArray to handle List instances
This commit is contained in:
parent
1578ebc8bb
commit
284a4357e0
@ -542,6 +542,14 @@ private Object convertLtreeArray(Column column, Field fieldDefn, Object data) {
|
||||
List<String> ltrees = Arrays.asList(s.split(","));
|
||||
r.deliver(ltrees);
|
||||
}
|
||||
else if (data instanceof List) {
|
||||
List<Object> list = (List<Object>) data;
|
||||
List<String> ltrees = new ArrayList<>(list.size());
|
||||
for (Object value : list) {
|
||||
ltrees.add(value.toString());
|
||||
}
|
||||
r.deliver(ltrees);
|
||||
}
|
||||
else if (data instanceof PgArray) {
|
||||
PgArray pgArray = (PgArray) data;
|
||||
try {
|
||||
|
@ -278,9 +278,6 @@ public boolean isArray(PostgresType type) {
|
||||
case PgOid.INT8RANGE_ARRAY:
|
||||
return true;
|
||||
default:
|
||||
if (TypeRegistry.TYPE_NAME_LTREE_ARRAY.equals(type.getName())) {
|
||||
return false;
|
||||
}
|
||||
return type.isArrayType();
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user