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

JDBC connector 1.5.6+: preparedStatement + getGeneratedKeys() = faulty exception on _first_ resultset.next()

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.5.7
    • Fix Version/s: 1.5.8
    • Component/s: Other
    • Labels:

      Description

      {{ connection = dataSource.getConnection();
      statement = connection.prepareStatement(sql, Statement.RETURN_GENERATED_KEYS);
      <... >
      result = statement.executeUpdate();

      ResultSet rs = statement.getGeneratedKeys();
      }}

      rs.next() now throws java.sql.SQLException: Operation not permit on a closed resultSet.

      This should not happen on first call to rs.next().

      Bug introduced in 1.5.7, 1.5.6 behaves as it should with regards to this.

        Attachments

          Activity

            People

            Assignee:
            diego dupin Diego Dupin
            Reporter:
            danielnilssonse Daniel Nilsson
            Votes:
            0 Vote for this issue
            Watchers:
            3 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.