Search Postgresql Archives

strange change (and error) in 8.3 ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux