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

Column names on ResultSet.updateXXX and getXXX methods are handled incorrectly

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.0.2.1, 10.1.1.0
    • 10.1.1.0
    • JDBC
    • None

    Description

      Sections 14.2.3 and [14.2.3] of JDBC 3.0 spec say

      Column names supplied to getter [updater] methods are case insensitive. If a select list
      contains the same column more than once, the first instance of the column will be
      returned [updated].

      Derby returns or updates the last column in the select list, not the first. With the attached Java class I see

      PRE-UPDATE
      1,100
      POST-UPDATE
      1,500
      POST-UPDATE getXXX(name)
      AB:500,ab500

      Attachments

        1. x.java
          1 kB
          Daniel John Debrunner

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: