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

SQLClob.getObject() should always return a java.sql.Clob

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.6.1.0
    • 10.7.1.1
    • JDBC, SQL
    • Normal

    Description

      Depending on what SQLClob wraps (a string, a stream, a java.sql.Clob), SQLClob.getObject() sometimes returns a string and other times returns a java.sql.Clob. In at least one spot, the compiler expects that SQLClob.getObject() will always return a java.sql.Clob. See the final cast compiled by SQLToJavaValueNode.generateJavaValue(). I believe that the compiler is correct and SQLClob.getObject() should behave predictably.

      Attachments

        1. derby-4066-02-ac-outputLOBs.diff
          19 kB
          Richard N. Hillegas
        2. derby-4754-01-ab-harmonyLOBs.diff
          22 kB
          Richard N. Hillegas
        3. derby-4754-01-aa-harmonyLOBs.diff
          20 kB
          Richard N. Hillegas

        Issue Links

          Activity

            People

              rhillegas Richard N. Hillegas
              rhillegas Richard N. Hillegas
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: