String concatenation work in version 8.2.11 and 8.3.6

From: Tony Liao <tonyliao(at)yuehetone(dot)com>
To: pgsql-admin(at)postgresql(dot)org
Subject: String concatenation work in version 8.2.11 and 8.3.6
Date: 2009-02-26 08:32:50
Message-ID: 8f750b7c0902260032u76d11ca8p1349fec8e899d36c@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-admin

hi,all
for example tableA
create table tableA (
id serial,
a integer,
b integer,
c integer
);
insert into tableA (a,b,c) values (12,34,56);

then,
select id from tableA where (a||b||c)=123456;
in postgresql version 8.2.11,it works.
but in postgresql version 8.3.6,the error as bellow:
ERROR: operator does not exist: integer || integer
LINE 1: select id from tableA where (a||b||c)=123456;
^
HINT: No operator matches the given name and argument type(s). You
might need to add explicit type casts.

is it a bug in 8.2.11 or I install 8.3.6 not completely?

Responses

Browse pgsql-admin by date

  From Date Subject
Next Message Julius Tuskenis 2009-02-26 09:23:53 Re: String concatenation work in version 8.2.11 and 8.3.6
Previous Message Scott Marlowe 2009-02-26 06:20:02 Re: HI All,