|
Patch to TableElementList plus test changes.
If I don't hear anything I'll commit this in a couple of days. URL: http://svn.apache.org/viewcvs?view=rev&rev=156570
Log: Fix for Columns specified in a PRIMARY KEY constraint in CREATE TABLE are implicitly set to NOT NULL per the SQL spec. If a PRIMARY KEY constraint is added using ALTER TABLE then all columns must also be NOT NULL. Similarly, columns specified in a UNIQUE constraint must still be explictly NOT NULL. Modified: incubator/derby/code/trunk/java/engine/org/apache/derby/impl/sql/compile/TableElementList.java incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/db2Compatibility.out incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/nulls.out incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/master/primarykey.out incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/db2Compatibility.sql incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/nulls.sql incubator/derby/code/trunk/java/testing/org/apache/derbyTesting/functionTests/tests/lang/primarykey.sql |
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
I am posting this first for review as a couple of tests still need to be updated.