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

    • Bug
    • Status: Closed (View Workflow)
    • Major
    • Resolution: Fixed
    • 1.5.7
    • 1.5.8
    • Other

    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

            diego dupin Diego Dupin
            danielnilssonse Daniel Nilsson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1d
                1d
                Remaining:
                Remaining Estimate - 1d
                1d
                Logged:
                Time Spent - Not Specified
                Not Specified

                Git Integration

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