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

interrupting thread performing "create table" doesn't cause SQLException with sql state "08000"

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 10.8.1.2
    • None
    • SQL
    • None
    • Windows 7, JDK 1.6.0_25
    • Repro attached
    • Deviation from standard

    Description

      We would like to take advantage of the recent Derby enhancement for handling thread interruption. http://db.apache.org/derby/docs/dev/devguide/devguide-single.html, section "Working with database threads in an embedded environment" states that in the case of exception, the calling code should receive a SQLException with code 08000. In my testing, this appears to work for sql "insert" statements, but not for sql "create table" statements. This is an issue for us since database tables are created dynamically over the course of the application's normal operation.

      Junit test repro to follow.

      Attachments

        1. DerbyInterruptTest.java
          14 kB
          Jim Newsham

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jn Jim Newsham
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: