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

    • Bug
    • Status: Closed (View Workflow)
    • Minor
    • Resolution: Fixed
    • 1.1.0
    • 1.1.1
    • None
    • 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);

      Attachments

        Activity

          wlad Vladislav Vaintroub created issue -
          wlad Vladislav Vaintroub made changes -
          Field Original Value New Value
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Closed [ 6 ]
          wlad Vladislav Vaintroub made changes -
          Resolution Fixed [ 1 ]
          Status Closed [ 6 ] Reopened [ 4 ]
          wlad Vladislav Vaintroub made changes -
          Issue Type Task [ 3 ] Bug [ 1 ]
          wlad Vladislav Vaintroub made changes -
          Resolution Fixed [ 1 ]
          Status Reopened [ 4 ] Closed [ 6 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Workflow defaullt [ 26216 ] MariaDB v2 [ 47853 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Workflow MariaDB v2 [ 47853 ] MariaDB connectors [ 54981 ]
          ratzpo Rasmus Johansson (Inactive) made changes -
          Workflow MariaDB connectors [ 54981 ] MariaDB v3 [ 70280 ]
          serg Sergei Golubchik made changes -
          Workflow MariaDB v3 [ 70280 ] MariaDB v4 [ 134670 ]

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Git Integration

                Error rendering 'com.xiplink.jira.git.jira_git_plugin:git-issue-webpanel'. Please contact your Jira administrators.