Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Currently setObject() infers the type of the parameter by calling TypedValue.ofJdbc, which delegates to Rep.of(value.getClass()) to do a lookup in VALUE_MAP. VALUE_MAP containsĀ an entry for java.sql.Array, but this is an interface type, which can never match the actual class of avatica.util.ArrayImpl.
Instead the implementation falls back to OBJECT, which then fails during serialization.