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

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • avatica-1.9.0
    • avatica
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: