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

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 10.2.2.0
    • Fix Version/s: None
    • Component/s: JDBC
    • Urgency:
      Normal
    • Issue & fix info:
      Repro attached
    • Bug behavior facts:
      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.

        Activity

        Hide
        Daniel John Debrunner added a comment -

        Test jdbc.AutoGenJDBC30Test has some commented out code that shows this bug, search for DERBY-3249.

        Show
        Daniel John Debrunner added a comment - Test jdbc.AutoGenJDBC30Test has some commented out code that shows this bug, search for DERBY-3249 .
        Hide
        Kathey Marsden added a comment -

        Triaged for 10.5.2. Set urgency normal, repro attached and deviation from standard.

        Show
        Kathey Marsden added a comment - Triaged for 10.5.2. Set urgency normal, repro attached and deviation from standard.

          People

          • Assignee:
            Unassigned
            Reporter:
            Daniel John Debrunner
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development