Uploaded image for project: 'Commons DBCP'
  1. Commons DBCP
  2. DBCP-303

getGeneratedKeys does not work

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.3
    • 1.3
    • None

    Description

      ResultSet rs = ps.getGeneratedKeys();
      if (rs.next())

      The ResultSet is always empty.

      I've tracked down the issue to PooledConnectionImpl.makeObject which doesn't call Connection.prepareStatement(String, int) when key._autoGeneratedKeys is not null. Patch to follow shortly.

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            Unassigned Unassigned
            dave@daveoxley.co.uk Dave Oxley
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment