Re: PostgreSQL - Mailing list pgsql-bugs

From Robert Hentosh
Subject Re: PostgreSQL
Date
Msg-id Pine.LNX.4.44.0301110623150.2488-100000@eris.io.com
Whole thread Raw
In response to PostgreSQL  ("Om Computer & Software S.R.L." <omc@rdsnet.ro>)
List pgsql-bugs
On Fri, 10 Jan 2003, Om Computer & Software S.R.L. wrote:

> When inserting a row into a table, if there is a varchar column and if
> in that column the value to be inserted is a zero length string (like
> ''), then instead of writing a null value, PostgreSQL writes that zero
> length string. We are able to do this with delphi which generates such
> sql insert phrases. We contacted Borland, but there was no answer. I
> don't know if this is a bug, but I'm sure that inserting a null value
> instead of a zero length string would help us a lot.

NULL and an empty string are two different things.  NULL is supposed to
represent an unknown value.  This is similar to NULL in the integer space,
where NULL is not the same as a 0.

Postgresql is following the spec in this regard.

pgsql-bugs by date:

Previous
From: Florian Wunderlich
Date:
Subject: Re: Bug #866: Cursor scrolling broken in 7.3.1 (works in 7.2.1)
Next
From: pgsql-bugs@postgresql.org
Date:
Subject: Bug #871: FW: How to solve the problem