Received: from ece.rice.edu (ece.rice.edu [128.42.4.34]) by postgresql.org (Postfix) with ESMTP id 1B67F47686C for ; Fri, 15 Mar 2002 18:14:19 -0500 (EST) Received: from localhost (localhost [127.0.0.1]) by ece.rice.edu (Postfix) with ESMTP id F0C9468A5F; Fri, 15 Mar 2002 17:14:20 -0600 (CST) Received: from wallace.ece.rice.edu (wallace.ece.rice.edu [128.42.12.154]) by ece.rice.edu (Postfix) with ESMTP id 359C068A14; Fri, 15 Mar 2002 17:14:20 -0600 (CST) Received: from reedstrm by wallace.ece.rice.edu with local (Exim 3.34 #1 (Debian)) id 16m0tw-0004qZ-00; Fri, 15 Mar 2002 17:14:20 -0600 Date: Fri, 15 Mar 2002 17:14:19 -0600 From: "Ross J. Reedstrom" To: awais Cc: pgsql-docs@postgresql.org Subject: Re: problem with new postgresql driver Message-ID: <20020315231419.GB18407@rice.edu> References: <009601c1cb4b$ed1b0040$1700a8c0@awais> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <009601c1cb4b$ed1b0040$1700a8c0@awais> User-Agent: Mutt/1.3.27i X-Virus-Scanned: by AMaViS snapshot-20010714 X-Archive-Number: 200203/35 X-Sequence-Number: 1316 The correct syntax is: SELECT * FROM atm WHERE location IS NULL Ross On Thu, Mar 14, 2002 at 04:32:30PM +0500, awais wrote: > Hi, > > We have a table named "atm" in our database which is uing latest driver of postgresql, it has a column named "location", all records (which are more than 1) of "atm" table have this column value set as (null). When we executed the query "select * from atm where location=null ", 0 rows were returned, which was not we were expecting. > > We have another database using previous driver of postgresql, it also has a table named "atm" with a column named "location", similarly all records (which are more than 1) of "atm" table have this column value set as (null), when we executed the query "select * from atm where location=null ", all rows were returned, which was according to our expectations. > > Can u please describe how to tackle this problem. > > regards, > Awais