Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
None
-
None
-
None
Description
Write exhaustive tests for all of the PreparedStatement.setXxx methods, PreparedStatement.setObject(int, Object) (i.e. converting to what Calcite thinks the parameter should be), and all of the ResultSet.getXxx methods, testing every allowed combination of source and destination types.
In CalciteRemoteDriverTest.testParameterConvert, I test PreparedStatement.setObject(int, Object, int) with every combination of source & destination types that are allowed by the JDBC spec. (SqlType.canGet and .canSet contains the type mappings from the spec.). So the new tests could be built in a similar way.