Skip site navigation (1) Skip section navigation (2)

Peripheral Links

Header And Logo

PostgreSQL
| The world's most advanced open source database.

Site Navigation

Search for
  Advanced Search

Re: BUG #3641: Concat fails in update



>>> On Fri, Sep 28, 2007 at  8:39 AM, in message
<200709281339(dot)l8SDdIxj002744(at)wwwmaster(dot)postgresql(dot)org>, "Curt"
<kurt(at)net2business(dot)com> wrote: 
 
> UPDATE table content=content || 'constant' where idx=101;
> 
> Content field is overwritten with 'constant'.
 
test=> create temp table t1 (idx int not null primary key, content text);
NOTICE:  CREATE TABLE / PRIMARY KEY will create implicit index "t1_pkey" for table "t1"
CREATE TABLE
test=> insert into t1 values (1, 'one');
INSERT 0 1
test=> update t1 set content = content || ' and a half' where idx = 1;
UPDATE 1
test=> select * from t1;
 idx |    content
-----+----------------
   1 | one and a half
(1 row)

test=> select version();
                                       version
-------------------------------------------------------------------------------------
 PostgreSQL 8.2.4 on i686-pc-linux-gnu, compiled by GCC gcc (GCC) 3.3.3 (SuSE Linux)
(1 row)
 
Please show something similar from your environment.
 
-Kevin
 





Home | Main Index | Thread Index

Privacy Policy | PostgreSQL Archives hosted by Command Prompt, Inc. | Designed by tinysofa
Copyright © 1996 – 2008 PostgreSQL Global Development Group