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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 10.6.1.0
    • Fix Version/s: 10.7.1.1
    • Component/s: JDBC, SQL
    • Urgency:
      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-4754-01-ab-harmonyLOBs.diff
          22 kB
          Rick Hillegas
        2. derby-4754-01-aa-harmonyLOBs.diff
          20 kB
          Rick Hillegas
        3. derby-4066-02-ac-outputLOBs.diff
          19 kB
          Rick Hillegas

          Issue Links

            Activity

              People

              • Assignee:
                rhillegas Rick Hillegas
                Reporter:
                rhillegas Rick Hillegas
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: