COALESCE bug

From: Daniel Schuchardt <daniel_schuchardt(at)web(dot)de>
To: pgsql-hackers(at)postgresql(dot)org
Subject: COALESCE bug
Date: 2005-10-10 13:56:10
Message-ID: didrss$iud$1@news.hub.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

Hy,

my PostgreSQL 8.0.0 on i686-pc-mingw32, compiled by GCC gcc.exe (GCC) 3.4.2

crashes when

SELECT * FROM pg_stat_activity WHERE datname=COALESCE(NULL, NULL);

I had an mistake in a stored procedure so COALESCE got 2 NULL values but
a crash is not nice here ;-)

workaround :
SELECT * FROM pg_stat_activity WHERE datname=COALESCE(NULL, NULL, '');
so COALESCE has one nice param to return.

Daniel

(Windows)

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Fuhr 2005-10-10 14:18:55 Re: COALESCE bug
Previous Message John Gray 2005-10-10 13:08:08 Minor point about contrib/xml2 functions "IMMUTABLE" marking