Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1XG05K-0006L8-Qs for pgsql-bugs@arkaria.postgresql.org; Sat, 09 Aug 2014 06:24:58 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1XG05K-0007yp-7A for pgsql-bugs@arkaria.postgresql.org; Sat, 09 Aug 2014 06:24:58 +0000 Received: from makus.postgresql.org ([2001:4800:1501:1::229]) by malur.postgresql.org with esmtps (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1XG05J-0007yi-7z for pgsql-bugs@postgresql.org; Sat, 09 Aug 2014 06:24:57 +0000 Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.80) (envelope-from ) id 1XG05F-0007ey-MI for pgsql-bugs@postgresql.org; Sat, 09 Aug 2014 06:24:55 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1XG05F-0005O5-3Y for pgsql-bugs@postgresql.org; Fri, 08 Aug 2014 23:24:53 -0700 Date: Fri, 8 Aug 2014 23:24:53 -0700 (PDT) From: David G Johnston To: pgsql-bugs@postgresql.org Message-ID: <1407565493103-5814308.post@n5.nabble.com> In-Reply-To: <1407565162568-5814307.post@n5.nabble.com> References: <20140808122249.2597.46833@wrigleys.postgresql.org> <1407564973988-5814306.post@n5.nabble.com> <1407565162568-5814307.post@n5.nabble.com> Subject: Re: BUG #11130: Case condition error MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 0.8 (/) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-bugs Precedence: bulk Sender: pgsql-bugs-owner@postgresql.org David G Johnston wrote > > David G Johnston wrote >> >> mozsar.laszlo wrote >>> The following bug has been logged on the website: >>> >>> Bug reference: 11130 >>> Logged by: Laszlo Mozsar >>> Email address: >>> mozsar.laszlo@ >>> PostgreSQL version: 9.3.4 >>> Operating system: Ubuntu 14.04 LTS >>> Description: >>> >>> The "is null" contition on a date field returns wrong result. I can't >>> reproduce this with a test table. My tables contains personal and >>> business >>> informations, so I can't send a full log with datas. >>> (I used reindex and vacuum before submitting this report.) >> Cannot test myself at the moment but is it that your attempt at a test >> case didn't fail or that you didn't attempt a self-contained test case? >> >> If, on the same database, you cannot reproduce the error with a minimal >> test case then something about the specific tables and queries is wrong >> and you (since you cannot share) need to figure out what that is. Even >> if you cannot share the data sharing the schema will let others try to >> see whatever it is you may be missing. >> >> David J. > And yes I see you shared a schema but nothing about it looks wrong so with > additional info is needed or you are showing what you think is the schema > while what is actually in production is different. There are only a > couple of relevant fields so if you can even so a subset of the data that > would probably help. > > David J. Actually, upon further review... I suspect your problem is with "lajarat_tipus" This is a char(1) field that you likely are interpreting as null what is actually a blank/space and so the first when is false as is the second (not L) and so the else matches. I do not use char so am not that knowledgable as to its nuances with respect to padding spaces. David J. -- View this message in context: http://postgresql.1045698.n5.nabble.com/BUG-11130-Case-condition-error-tp5814246p5814308.html Sent from the PostgreSQL - bugs mailing list archive at Nabble.com. -- Sent via pgsql-bugs mailing list (pgsql-bugs@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-bugs