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

NPE if you declare a constraint on a generated column and omit the datatype

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 10.5.1.1
    • 10.5.1.1
    • SQL
    • None
    • Patch Available

    Description

      The following script shows the problem for CHECK constraints. Other NPEs occur for PRIMARY, FOREIGN KEY, and NOT NULL constraints.

      drop table t_ccnd_1;

      – raises a null pointer exception
      create table t_ccnd_1( a int, b generated always as ( -a ) check ( b < 0 ) );

      Attachments

        Issue Links

          Activity

            People

              rhillegas Richard N. Hillegas
              rhillegas Richard N. Hillegas
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: