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

Derby should throw a better error message if a BLOB/CLOB column is accessed more than once

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Won't Fix
    • None
    • None
    • JDBC
    • None

    Description

      With the DERBY-2892 fix revision 642974, users can no longer access a BLOB/CLOB column more than once for each row. Currently the error message is
      XJ217 - You cannot invoke other java.sql.Clob/java.sql.Blob methods after calling the free() method or after the Blob/Clob's transaction has been committed or rolled back.

      I don't know that that makes sense given the user called getString()

      For getCharacterStream()/getBinaryStream() there is no error on the call, just an IOException on the read.

      We should throw a clearer error message, that the user is not allowed to make multiple getXXX calls on a BLOB/CLOB column for each row.

      Attachments

        Issue Links

          Activity

            People

              kmarsden Katherine Marsden
              kmarsden Katherine Marsden
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: