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

Using large stream with 'values cast(? as clob)' causes OutOfMemoryError

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 10.6.1.0
    • None
    • Store
    • Normal
    • Repro attached
    • Crash

    Description

      Inserting a stream though a values clause and casting the value to a Clob causes the stream to be materialized in memory.
      If the stream is sufficiently large, this will result in an OutOfMemoryError.

      Attachments

        1. ClobInValuesClauseOOME.java
          0.9 kB
          Kristian Waagan

        Issue Links

          Activity

            People

              Unassigned Unassigned
              kristwaa Kristian Waagan
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated: