Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-3249

Statement.getGeneratedKeys can return ResultSets that are not CONCUR_READ_ONLY if the Statement object has no CONCUR_READ_ONLY concurrency

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • 10.2.2.0
    • None
    • JDBC
    • Normal
    • Repro attached
    • Deviation from standard

    Description

      JDBC 4 section 13.6 states:

      The concurrency of the ResultSet object returned by getGeneratedKeys must be CONCUR_READ_ONLY. The type of the ResultSet object must be either TYPE_FORWARD_ONLY or TYPE_SCROLL_INSENSITIVE.

      Since in some cases Derby generates the generated keys ResultSet using the Statement object it inherits the concurrency and type of that statement.

      Attachments

        Activity

          People

            Unassigned Unassigned
            djd Daniel John Debrunner
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: