Uploaded image for project: 'MariaDB Connector/J'
  1. MariaDB Connector/J
  2. CONJ-24

NullPointerException is thrown when ResultSet.first() is invoked on "streaming" result set

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.1.0
    • Fix Version/s: 1.1.1
    • Component/s: None
    • Labels:
      None

      Description

      Trying to invoke method first() on streaming result set results in NullPointerException. It should be SQLException telling that according to JDBC spec FORWARD_ONLY cursor does not match well with first()

      stmt.setFetchSize(Integer.MIN_VALUE);
      rs = stmt.executeQuery("SELECT dt FROM timeStamps");
      rs.first();
      ts = rs.getTimestamp(1);
      

        Gliffy Diagrams

          Attachments

            Activity

            There are no comments yet on this issue.

              People

              • Assignee:
                wlad Vladislav Vaintroub
                Reporter:
                wlad Vladislav Vaintroub
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours
                  2h