Re: BUG #4412: Check constraints cannot be added to the table for fields that are mixed case

From: "Jaime Casanova" <jcasanov(at)systemguards(dot)com(dot)ec>
To: Kevin <kevin(at)rtvision(dot)com>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: BUG #4412: Check constraints cannot be added to the table for fields that are mixed case
Date: 2008-09-09 20:26:09
Message-ID: 3073cc9b0809091326w5bf75de2r6b936fb1108cc62d@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

On Tue, Sep 9, 2008 at 3:11 PM, Kevin <kevin(at)rtvision(dot)com> wrote:

> Description: Check constraints cannot be added to the table for
> fields that are mixed case
> Details:
>
> Check constraints cannot be added to the table for fields that are mixed
> case.
>
> Example - field employeeName in table Employees

postgres converts all your uppercase in object names to lowercase...
if you really want mixed case you must put the name in quotes.
Try with:

ALTER TABLE "Employees" ADD CONSTRAINT employeenametest
CHECK (employeename != 'Kevin')

--
regards,
Jaime Casanova
Soporte y capacitación de PostgreSQL
Asesoría y desarrollo de sistemas
Guayaquil - Ecuador
Cel. (593) 87171157

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message David Jaquay 2008-09-09 20:28:27 BUG #4413: LEFT JOIN not working as expected
Previous Message Kevin 2008-09-09 20:11:23 BUG #4412: Check constraints cannot be added to the table for fields that are mixed case