db-ddlutils-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Thomas Dudziak (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DDLUTILS-221) ddlutils tries to drop an index in postgres which is really a unique constraint
Date Thu, 31 Jul 2008 06:22:31 GMT

    [ https://issues.apache.org/jira/browse/DDLUTILS-221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12618611#action_12618611
] 

Thomas Dudziak commented on DDLUTILS-221:
-----------------------------------------

DdlUtils currently does not support unique constraints, neither for creating nor reading.
And apparently the PostgreSql driver returns them as indexes which makes DdlUtils believe
they are. 

> ddlutils tries to drop an index in postgres which is really a unique constraint
> -------------------------------------------------------------------------------
>
>                 Key: DDLUTILS-221
>                 URL: https://issues.apache.org/jira/browse/DDLUTILS-221
>             Project: DdlUtils
>          Issue Type: Bug
>          Components: Core - PostgreSql
>    Affects Versions: 1.0
>            Reporter: Chris Hyzer
>            Assignee: Thomas Dudziak
>
> I have a unique constraint on a col, and ddltuils tries to drop it like its only an index,
which gives an error:
>       [sql] Failed to execute:    DROP INDEX fields_name_type_unq
> BUILD FAILED
> C:\mchyzer\isc\dev\grouper-qs-1.2.0\grouper\build.xml:769: org.postgresql.util.PSQLException:
ERROR: cannot drop index fields_name_type_unq because constraint fields_name_type_unq on table
grouper_fields requires it
> The solution would be to look at db metadata, see that it is a constraint, drop the constraint,
then drop the index (if it isnt dropped by dropping the constraint)
> Thanks,
> chris

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


Mime
View raw message