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

Access rule violations should use a SQL state starting with '42' according to the SQL standard.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.2.1.6, 10.3.1.4
    • 10.3.1.4
    • JDBC
    • None
    • Release Note Needed

    Description

      The SQL standard says that SQL State '42' is for "syntax error or access
      rule violation" (section 23.1).

      There is a question of what JDBC 4.0 exception should be thrown for a access rule violation,
      JDBC 4.0 maps '42' to SQLSyntaxErrorException which seems wrong for an access rule.

      Message thread:

      http://mail-archives.apache.org/mod_mbox/db-derby-dev/200609.mbox/%3c45004A04.5080002@apache.org%3e

      Attachments

        1. releaseNote.html
          3 kB
          Jorgen Loland
        2. DERBY-1828-2indent.diff
          130 kB
          Jorgen Loland
        3. DERBY-1828-2.stat
          0.9 kB
          Jorgen Loland
        4. DERBY-1828-2.diff
          130 kB
          Jorgen Loland
        5. DERBY-1828-1.stat
          0.6 kB
          Jorgen Loland
        6. DERBY-1828-1.diff
          78 kB
          Jorgen Loland

        Issue Links

          Activity

            People

              jorgenlo Jorgen Loland
              djd Daniel John Debrunner
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: