Re: Bug report CHECK CONSTRAINTS - Mailing list pgadmin-support

From Andreas Pflug
Subject Re: Bug report CHECK CONSTRAINTS
Date
Msg-id 40F28F1C.6050204@pse-consulting.de
Whole thread Raw
In response to Bug report CHECK CONSTRAINTS  ("Pavel Veretennikov" <vermut@kid.lv>)
List pgadmin-support
Pavel Veretennikov wrote:

>  
>   CONSTRAINT "$1" CHECK sex >= 0,
>   CONSTRAINT "$2" CHECK "type" >= 0
> )
> WITH OIDS;
>
> When trying to copy-paste-run it, it complains about CHECK 
> contstraints,  cause they should be written like
>   CONSTRAINT "$1" CHECK (sex >= 0),
>   CONSTRAINT "$2" CHECK ("type" >= 0) 


You're right, table reengineering misses the parentheses (the constraint 
itself shows it).
Fixed in CVS, thanks for reporting.

Regards,
Andreas



pgadmin-support by date:

Previous
From: "Pavel Veretennikov"
Date:
Subject: Bug report CHECK CONSTRAINTS
Next
From: Daniel Struck
Date:
Subject: Re: [PHP] Secure DB Systems - How to