git.net

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[jira] [Created] (CALCITE-2362) PreparedStatement.setObject does not handle Array


Miles Spielberg created CALCITE-2362:
----------------------------------------

             Summary: PreparedStatement.setObject does not handle Array
                 Key: CALCITE-2362
                 URL: https://issues.apache.org/jira/browse/CALCITE-2362
             Project: Calcite
          Issue Type: Bug
            Reporter: Miles Spielberg
            Assignee: Julian Hyde


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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)



( ! ) Warning: include(msgfooter.php): failed to open stream: No such file or directory in /var/www/git/apache-calcite-development/msg03755.html on line 90
Call Stack
#TimeMemoryFunctionLocation
10.0007363704{main}( ).../msg03755.html:0

( ! ) Warning: include(): Failed opening 'msgfooter.php' for inclusion (include_path='.:/var/www/git') in /var/www/git/apache-calcite-development/msg03755.html on line 90
Call Stack
#TimeMemoryFunctionLocation
10.0007363704{main}( ).../msg03755.html:0