pg.ddx.io  pgsql-admin@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tony Liao <tonyliao@yuehetone.com>
To: pgsql-admin@postgresql.org
Subject: String concatenation work in version 8.2.11 and 8.3.6
Date: Thu, 26 Feb 2009 16:32:50 +0800
Message-ID: <8f750b7c0902260032u76d11ca8p1349fec8e899d36c@mail.gmail.com> (raw)

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?

view thread (3+ messages)  latest in thread

Message-ID: <8f750b7c0902260032u76d11ca8p1349fec8e899d36c@mail.gmail.com>
Permalink:  ../8f750b7c0902260032u76d11ca8p1349fec8e899d36c@mail.gmail.com/
Also on:    postgresql.org/message-id/8f750b7c0902260032u76d11ca8p1349fec8e899d36c@mail.gmail.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-admin@postgresql.org
  Cc: tonyliao@yuehetone.com
  Subject: Re: String concatenation work in version 8.2.11 and 8.3.6
  In-Reply-To: <8f750b7c0902260032u76d11ca8p1349fec8e899d36c@mail.gmail.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox