Re: BUG #5028: CASE returns ELSE value always when type is "char"

Kevin Grittner <kevin.grittner@wicourts.gov>

From: "Kevin Grittner" <Kevin.Grittner@wicourts.gov>
To: "Tom Lane" <tgl@sss.pgh.pa.us>
Cc: <pgsql-bugs@postgresql.org>,"Sam Mason" <sam@samason.me.uk>
Date: 2009-09-01T18:30:13Z
Lists: pgsql-bugs
Tom Lane <tgl@sss.pgh.pa.us> wrote:
> Joseph Shraibman <jks@selectacast.net> writes:
>> So the type of what is in the ELSE clause determines the type of
>> the output?
> 
> If all the other branches are unknown literals, yes.
 
What's the best place to look to get a handle on what the benefits are
of treating character string literals as being of unknown type?
(Other than the obvious backward compatibility issues.)
 
-Kevin