[ 
https://issues.apache.org/jira/browse/DERBY-3330?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Anurag Shekhar updated DERBY-3330:
----------------------------------

    Attachment: derby-3330v10.diff

Changes in this  (derby-3330v10.diff) patch since (derby-3330v9.diff)

Modified java/engine/org/apache/derby/impl/sql/compile/TableElementList.java to 
introduce a new method to check if any of the column in the constraint 
definition can have null value. This method is used while creating backing 
index for unique constraint and if all columns are non null able a backing 
unique index is created. If any of the column are null able a non unique index 
with uniqueWhenNotNull set to true.

nist script dml019.out doesn't requires any change now.

I haven't finished running tests on this patch.

> provide support for unique constraint over nullable columns
> -----------------------------------------------------------
>
>                 Key: DERBY-3330
>                 URL: https://issues.apache.org/jira/browse/DERBY-3330
>             Project: Derby
>          Issue Type: New Feature
>          Components: Store
>    Affects Versions: 10.4.0.0
>         Environment: all
>            Reporter: Anurag Shekhar
>            Assignee: Anurag Shekhar
>         Attachments: BTreeController.diff, derby-3330-testcase.diff, 
> derby-3330.diff, derby-3330v10.diff, derby-3330v2.diff, derby-3330v3.diff, 
> derby-3330v4.diff, derby-3330v5.diff, derby-3330v6.diff, derby-3330v7.diff, 
> derby-3330v8.diff, derby-3330v9.diff, FunctionalSpec_DERBY-3330-V2.html, 
> FunctionalSpec_DERBY-3330.html, UniqueConstraint_Implementation.html, 
> UniqueConstraint_Implementation_V2.html, 
> UniqueConstraint_Implementation_V3.html
>
>
> Allow unique constraint over nullable field. Right now derby support unique 
> constraint only over not null columns.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to