Re: [SQL] 6.5.3 - backend closes if wrong parameters to NULLIF, CASE

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: "Emils Klotins" <emils(at)mail(dot)usis(dot)bkc(dot)lv>
Cc: pgsql-sql(at)postgreSQL(dot)org
Subject: Re: [SQL] 6.5.3 - backend closes if wrong parameters to NULLIF, CASE
Date: 1999-11-26 18:06:00
Message-ID: 16140.943639560@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-sql

"Emils Klotins" <emils(at)mail(dot)usis(dot)bkc(dot)lv> writes:
> Ie. If I do a thing like UPDATE authors set
> birthdate=NULLIF(date '12-12-1999', date '') ...
> the backend will die and whenever afterwards I try to SELECT
> the address_id field from the updated row, it would die again.

I get "Bad date external representation ''" from either 6.5.3
or current sources.

Are you sure you're running 6.5.3, and not some older version?
I fixed a lot of bugs involving CASE around 6.5 ...

If it's not that, then there must be some other aspect of your
example that's critical but you haven't shown us. Please file
a formal bug report giving a complete SQL script that reproduces
the bug.

regards, tom lane

Browse pgsql-sql by date

  From Date Subject
Next Message Tom Lane 1999-11-26 18:19:27 Re: [SQL] DISTINCT & COUNT
Previous Message Stuart Rison 1999-11-26 18:00:02 Re: [SQL] DISTINCT & COUNT