From: Qingqing Zhou <zhouqq@cs.toronto.edu>
To: pgsql-bugs@postgresql.org
Subject: Re: Is this a bug????
Date: Sun, 4 Dec 2005 18:10:41 -0500
Message-ID: <dmvsvm$1v13$1@news.hub.org> (raw)
References: <1133735370.5560.15.camel@Panoramix>
"Joost Kraaijeveld" <J.Kraaijeveld@Askesis.nl> wrote
>
> select objectid,defaulttermsofpayment from prototype.customers
> where
> objectid = '336A0451-D9E8-7C11-6333-C17DF18E8979'
>
> I get the following answer:
>
> "336A0451-D9E8-7C11-6333-C17DF18E8979";"null"
>
test=# create table m (c1 char(10), c2 char(10));
CREATE TABLE
test=# insert into m values('hello', null);
INSERT 0 1
test=# select * from m where c1 = 'hello';
c1 | c2
------------+----
hello |
(1 row)
test=# select * from m where c2 is null;
c1 | c2
------------+----
hello |
(1 row)
Notice if an column is null, then nothing is shown. So the strange thing is
how you get "null"?
Regards,
Qingqing
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-bugs@postgresql.org
Cc: zhouqq@cs.toronto.edu
Subject: Re: Is this a bug????
In-Reply-To: <dmvsvm$1v13$1@news.hub.org>
References: <1133735370.5560.15.camel@Panoramix> <dmvsvm$1v13$1@news.hub.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox