Uploaded image for project: 'Calcite'
  1. Calcite
  2. CALCITE-656

Write tests for PreparedStatement.setXxx and ResultSet.getXxx

    XMLWordPrintableJSON

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.

      Attachments

        Activity

          People

            Unassigned Unassigned
            julianhyde Julian Hyde
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: