Re: constraint problem

Поиск
Список
Период
Сортировка
От Michael Fuhr
Тема Re: constraint problem
Дата
Msg-id 20050726023442.GB37704@winnie.fuhr.org
обсуждение исходный текст
Ответ на constraint problem  (Martín Marqués <martin@bugs.unl.edu.ar>)
Список pgsql-general
On Mon, Jul 25, 2005 at 08:28:32PM -0300, Martín Marqués wrote:
> I tried adding this CONSTRAINT to the table definition, but with no luck:
>
>     CONSTRAINT nonuloconfirmado CHECK
>         ((login NOT NULL AND password NOT NULL) OR NOT confirmado)
>
> It gives an error on the first NULL.

Use IS NOT NULL instead of NOT NULL.

--
Michael Fuhr
http://www.fuhr.org/~mfuhr/

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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: constraint problem
Следующее
От: Tom Lane
Дата:
Сообщение: Re: pgsql client/server compatibility matrix?