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

Reading from ResultSet before calling next() should throw SQLException not NoSuchElementException

    Details

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

      Description

      Reading from ResultSet before calling next() should throw SQLException not NoSuchElementException.

      Each of the Cursor.Accessor.getXxx methods should convert runtime exceptions to SQLException.

      JdbcTest.testExtract currently demonstrates this problem; it passes if there is a NoSuchElementException, but should look for a SQLException.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                julianhyde Julian Hyde
                Reporter:
                julianhyde Julian Hyde
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: