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

Derby throws plain SQLIntegrityConstraintViolationException

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.10.2.0
    • 10.12.1.2
    • JDBC
    • None
    • Windows 7 x86_64, Java 1.6.0.45

    Description

      If a unique constraint is violated by an insert statement, then Derby throws an SQLIntegrityConstraintViolationException. The error message contains, in particular, the constraint name and the table name.

      To distinguish between cases with various constraints, Derby should instead throw a subclass of SQLIntegrityConstraintViolationException, with methods like getConstraintName(), and getTableName().

      See also https://hibernate.atlassian.net/browse/HHH-9516.

      Attachments

        1. switchArgs.diff
          7 kB
          Bryan Pendleton
        2. subPart2.diff
          77 kB
          Abhinav Gupta
        3. subPart1.diff
          2 kB
          Abhinav Gupta
        4. SharedException.diff
          7 kB
          Bryan Pendleton
        5. SamePackage.diff
          3 kB
          Bryan Pendleton
        6. passesTests.diff
          16 kB
          Bryan Pendleton
        7. IntegrityConstraint.diff
          14 kB
          Abhinav Gupta
        8. generateOnClientDoesntWork.diff
          26 kB
          Bryan Pendleton
        9. DERBY6733Repro.java
          2 kB
          Mamta A. Satoor
        10. CallSuper.diff
          23 kB
          Bryan Pendleton
        11. ant -verbose build all.txt
          637 kB
          Abhinav Gupta
        12. addToTestSuite.diff
          3 kB
          Bryan Pendleton

        Issue Links

          Activity

            People

              mac777 Abhinav Gupta
              jochen@apache.org Jochen Wiedmann
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: