Null records inserted - Mailing list pgsql-general

From Stephen Davies
Subject Null records inserted
Date
Msg-id 200103240237.NAA24498@mustang.sdc.com.au
Whole thread Raw
Responses Re: Null records inserted  ("Eric G. Miller" <egm2@jps.net>)
Re: Null records inserted  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
Hello.

I have a PostgreSQL (V7.0.2) database with several tables defined with
a primary key set by default to a sequence value.

99% of the time this works as expected but there is a trickle of
records appearing in each table where every field is null.

Could somebody please explain to me how this is possible so that I
might be able to track down the programming error that causes them.

That is, how can a field that is defined as having a default value wind
up in the database as null.

Despite the usual rules regarding null processing, I would still expect
a second unique primary key value of null to be rejected.

The database is usually maintained via a VB5 ODBC application.

Cheers and thanks,
Stephen Davies

========================================================================
Stephen Davies Consulting                              scldad@sdc.com.au
Adelaide, South Australia.                             Voice: 08-8177 1595
Computing & Network solutions.                         Fax: 08-8177 0133



pgsql-general by date:

Previous
From: shawn everett
Date:
Subject: Shopping Cart Design Quesiton
Next
From: "Eric G. Miller"
Date:
Subject: Re: Null records inserted