From: | Robert Hentosh <hentosh(at)io(dot)com> |
---|---|
To: | "Om Computer & Software S(dot)R(dot)L(dot)" <omc(at)rdsnet(dot)ro> |
Cc: | pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: PostgreSQL |
Date: | 2003-01-11 12:28:12 |
Message-ID: | Pine.LNX.4.44.0301110623150.2488-100000@eris.io.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | 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.
From | Date | Subject | |
---|---|---|---|
Next Message | pgsql-bugs | 2003-01-11 12:34:47 | Bug #871: FW: How to solve the problem |
Previous Message | Sean Chittenden | 2003-01-10 22:47:23 | Re: dropping user doesn't erase his rights. |