BUG #4412: Check constraints cannot be added to the table for fields that are mixed case - Mailing list pgsql-bugs

From Kevin
Subject BUG #4412: Check constraints cannot be added to the table for fields that are mixed case
Date
Msg-id 200809092011.m89KBNxq074772@wwwmaster.postgresql.org
Whole thread Raw
Responses Re: BUG #4412: Check constraints cannot be added to the table for fields that are mixed case
Re: BUG #4412: Check constraints cannot be added to the table for fields that are mixed case
List pgsql-bugs
The following bug has been logged online:

Bug reference:      4412
Logged by:          Kevin
Email address:      kevin@rtvision.com
PostgreSQL version: 8.0.15
Operating system:   Gentoo Linux
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
---------
ALTER TABLE "Employees" ADD CONSTRAINT "employeeNameTest" CHECK
(employeeName != 'Kevin')

---- results in  ---

ERROR:  column "employeename" does not exist

---------

I'm new to postgreSql, and using phppgadmin (also tried this with psql), so
haven't tried putting check directly on the field/column instead of the
table.  Also, the constraint I'm really trying to write requires referencing
2 columns.  For now, I switched the field names (to employee_name for
example).

pgsql-bugs by date:

Previous
From: Cindy
Date:
Subject: a question on postgres/xml
Next
From: "Jaime Casanova"
Date:
Subject: Re: BUG #4412: Check constraints cannot be added to the table for fields that are mixed case