Re: BUG #4478: = operator in connection with CASE looks like loose some functionality (bug or feature?) - Mailing list pgsql-bugs

From Tom Lane
Subject Re: BUG #4478: = operator in connection with CASE looks like loose some functionality (bug or feature?)
Date
Msg-id 9231.1224623326@sss.pgh.pa.us
Whole thread Raw
In response to BUG #4478: = operator in connection with CASE looks like loose some functionality (bug or feature?)  ("Robert 'BoBsoN' Partyka" <bobson@bobson.pl>)
List pgsql-bugs
"Robert 'BoBsoN' Partyka" <bobson@bobson.pl> writes:
> In construction "... ind = case ..." automagic conversion from text to
> integer is not done anymore in 8.3.* - you must cast it manually.

> Is this bug or feature? (for me it looks like bug).

It's intentional.

> If this is feature then I think it should be documented in manual and
> probably in some migration documentation.

See the first item under the 8.3 migration caveats:
"Non-character data types are no longer automatically cast to TEXT"
http://www.postgresql.org/docs/8.3/static/release-8-3.html

            regards, tom lane

pgsql-bugs by date:

Previous
From: "Joshua Tolley"
Date:
Subject: Re: BUG #4482: Segfault error 4
Next
From: Tom Lane
Date:
Subject: Re: BUG #4481: Big text insert/update using functions failed