MariaDB Client Library for Java Applications
  1. MariaDB Client Library for Java Applications
  2. CONJ-24

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: jdbc-1.1.0
    • Fix Version/s: jdbc-1.1.1
    • Labels:
      None
    • Global Rank:
      2577

      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);
      

        Activity

        There are no comments yet on this issue.

          People

          • Assignee:
            Vladislav Vaintroub
            Reporter:
            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