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

Поиск
Список
Период
Сортировка
От Jaime Casanova
Тема Re: BUG #4412: Check constraints cannot be added to the table for fields that are mixed case
Дата
Msg-id 3073cc9b0809091326w5bf75de2r6b936fb1108cc62d@mail.gmail.com
обсуждение исходный текст
Ответ на BUG #4412: Check constraints cannot be added to the table for fields that are mixed case  ("Kevin" <kevin@rtvision.com>)
Список pgsql-bugs
On Tue, Sep 9, 2008 at 3:11 PM, Kevin <kevin@rtvision.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 !=3D 'Kevin')


--=20
regards,
Jaime Casanova
Soporte y capacitaci=F3n de PostgreSQL
Asesor=EDa y desarrollo de sistemas
Guayaquil - Ecuador
Cel. (593) 87171157

В списке pgsql-bugs по дате отправления:

Предыдущее
От: "Kevin"
Дата:
Сообщение: BUG #4412: Check constraints cannot be added to the table for fields that are mixed case
Следующее
От: "David Jaquay"
Дата:
Сообщение: BUG #4413: LEFT JOIN not working as expected