pg.ddx.io  pgsql-bugs@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: David G Johnston <david.g.johnston@gmail.com>
To: pgsql-bugs@postgresql.org
Subject: Re: BUG #11130: Case condition error
Date: Fri, 8 Aug 2014 23:24:53 -0700 (PDT)
Message-ID: <1407565493103-5814308.post@n5.nabble.com> (raw)
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>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-bugs>

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



view thread (5+ messages)  latest in thread

Message-ID: <1407565493103-5814308.post@n5.nabble.com>
Permalink:  ../1407565493103-5814308.post@n5.nabble.com/
Also on:    postgresql.org/message-id/1407565493103-5814308.post@n5.nabble.com

 · 

reply

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: david.g.johnston@gmail.com
  Subject: Re: BUG #11130: Case condition error
  In-Reply-To: <1407565493103-5814308.post@n5.nabble.com>
  References: <20140808122249.2597.46833@wrigleys.postgresql.org> <1407564973988-5814306.post@n5.nabble.com> <1407565162568-5814307.post@n5.nabble.com> <1407565493103-5814308.post@n5.nabble.com>

* 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