Re: Violation of NOT NULL

Поиск
Список
Период
Сортировка
От Mike Mascari
Тема Re: Violation of NOT NULL
Дата
Msg-id 3CECFFC6.B70AF8C8@mascari.com
обсуждение исходный текст
Ответ на Violation of NOT NULL  ("Wm. G. Urquhart" <wgu@wurquhart.co.uk>)
Ответы Re: Violation of NOT NULL  ("Wm. G. Urquhart" <wgu@wurquhart.co.uk>)
Список pgsql-general
Tom Lane wrote:
>
> "Wm. G. Urquhart" <wgu@wurquhart.co.uk> writes:
> > I have a table where I've set two of the columns (varchar()) to be NOT
> > NULL. However, PostgreSQL allows me to enter rows without valid data for
> > these columns when I use a Stored Function.
>
> I don't really believe this, and I'm certainly not likely to be able to
> reproduce it with nothing but an INSERT to go on.  Please provide a
> *complete* example, preferably in the form of a script that can be fed
> to psql to exhibit the problem starting from an empty database.

Also, if by chance you are coming over from Oracle and expect an empty
string to be treated as NULL, it is not...

Mike Mascari
mascarm@mascari.com

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

Предыдущее
От: Daniel Lucazeau
Дата:
Сообщение: Re: Problem on installation PostgreSQL on cygwin
Следующее
От: Ron Snyder
Дата:
Сообщение: Re: Process balancing on smp db server/apache web serve