Re: Violation of NOT NULL - Mailing list pgsql-general

From Mike Mascari
Subject Re: Violation of NOT NULL
Date
Msg-id 3CECFFC6.B70AF8C8@mascari.com
Whole thread Raw
In response to Violation of NOT NULL  ("Wm. G. Urquhart" <wgu@wurquhart.co.uk>)
Responses Re: Violation of NOT NULL
List 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 by date:

Previous
From: Daniel Lucazeau
Date:
Subject: Re: Problem on installation PostgreSQL on cygwin
Next
From: Ron Snyder
Date:
Subject: Re: Process balancing on smp db server/apache web serve