strange change (and error) in 8.3 ? - Mailing list pgsql-general

From hubert depesz lubaczewski
Subject strange change (and error) in 8.3 ?
Date
Msg-id 9e4684ce0706140134od2df525p479c86e510555103@mail.gmail.com
Whole thread Raw
Responses Re: strange change (and error) in 8.3 ?  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-general
hi,
this query:
select 1 where '1'::text in (1::int8);

worked fine in 8.2:
# select version();
                                            version
------------------------------------------------------------------------------------------------
 PostgreSQL 8.2.4 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 4.1.2 (Ubuntu 4.1.2-0ubuntu4)
(1 row)

# select 1 where '1'::text in (1::int8);
 ?column?
----------
        1
(1 row)

but in 8.3 i get:
# select 1 where '1'::text in (1::int8);
ERROR:  operator does not exist: text = bigint
LINE 1: select 1 where '1'::text in (1::int8);
                                 ^
HINT:  No operator matches the given name and argument type(s). You might need to add explicit type casts.


why? i mean - i see that types are bad, but it worked in 8.2. why it was broken/modified in 8.3?

depesz

--
http://www.depesz.com/ - nowy, lepszy depesz

pgsql-general by date:

Previous
From: "Pavel Stehule"
Date:
Subject: Re: inner join problem with temporary tables
Next
From: Marco Colombo
Date:
Subject: Re: PostGreSQL for a small Desktop Application