X-Original-To: pgsql-bugs-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id CEBE39DCACE for ; Sun, 4 Dec 2005 19:09:48 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 56961-05 for ; Sun, 4 Dec 2005 19:09:45 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from floppy.pyrenet.fr (news.pyrenet.fr [194.116.145.2]) by postgresql.org (Postfix) with ESMTP id 7113B9DCAA9 for ; Sun, 4 Dec 2005 19:09:46 -0400 (AST) Received: by floppy.pyrenet.fr (Postfix, from userid 106) id C772F31F51; Mon, 5 Dec 2005 00:09:48 +0100 (MET) From: "Qingqing Zhou" X-Newsgroups: pgsql.bugs Subject: Re: Is this a bug???? Date: Sun, 4 Dec 2005 18:10:41 -0500 Organization: Hub.Org Networking Services Lines: 34 Message-ID: References: <1133735370.5560.15.camel@Panoramix> X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2900.2180 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180 X-RFC2646: Format=Flowed; Original To: pgsql-bugs@postgresql.org X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0 required=5 tests=[none] X-Spam-Score: 0 X-Spam-Level: X-Archive-Number: 200512/55 X-Sequence-Number: 13751 "Joost Kraaijeveld" 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