Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 289403 - " UNIQUE" addition to CREATE TABLE is determined by checking supportsPrimaryKeyConstraint() instead of supportsUniqueKeyConstraint()
Summary: " UNIQUE" addition to CREATE TABLE is determined by checking supportsPrimaryK...
Status: CLOSED FIXED
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Nobody - feel free to take it CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-09-14 19:43 EDT by Dies Koper CLA
Modified: 2022-06-09 10:34 EDT (History)
3 users (show)

See Also:
peter.krogh: iplog+


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Dies Koper CLA 2009-09-14 19:43:16 EDT
In DatabasePlatform we have the following method implementation:

    protected void printFieldUnique(Writer writer) throws IOException {
        if (supportsPrimaryKeyConstraint()) {
            writer.write(" UNIQUE");
        }
    }

It should probably be checking supportsUniqueKeyConstraint() instead.
Comment 1 Tom Ware CLA 2009-09-15 14:09:40 EDT
Checked in fixed version of the file.

Review: User submitted patch reviewed by Tom Ware

IP Log updated.

Tested with FullRegressionTestSuite on JPA and LRG on Core
Comment 2 Eclipse Webmaster CLA 2022-06-09 10:34:30 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink