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

getGeneratedKeys does not work

    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

        1. DBCP-303.diff
          1 kB
          Dave Oxley

        Activity

          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: