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

ResultSet.getXxx methods should throw SQLDataException if cannot convert to the requested type

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: avatica-1.9.0
    • Component/s: avatica
    • Labels:
      None

      Description

      AccessorImpl relies on cannotConvert(String) method to throw a exception when conversion is not possible between the accessor data type, and what the user requested.

      The exact class type of the exception is RuntimeException which is very generic, and not easy for the user to catch, unlike more specific types. Moreover JDBC drivers usually throws a SQLException instances for these kind of exceptions, which is likely what users are expecting.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                julianhyde Julian Hyde
                Reporter:
                laurent Laurent Goujon
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: