Received: from maia.hub.org (maia-2.hub.org [200.46.204.251]) by mail.postgresql.org (Postfix) with ESMTP id E751B1D7E7D7 for ; Wed, 16 Nov 2011 04:47:27 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by maia.hub.org (mx1.hub.org [200.46.204.251]) (amavisd-maia, port 10024) with ESMTP id 48058-05 for ; Wed, 16 Nov 2011 08:47:27 +0000 (UTC) X-Greylist: from auto-whitelisted by SQLgrey-1.8.0-rc2 Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 3C7611D7E7D6 for ; Wed, 16 Nov 2011 04:47:27 -0400 (AST) Received: from wwwmaster.postgresql.org ([217.196.146.204]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RQb9R-0002yl-Fq for pgsql-bugs@postgresql.org; Wed, 16 Nov 2011 08:47:26 +0000 Received: from wwwmaster.postgresql.org (wwwmaster.postgresql.org [217.196.146.204]) by wwwmaster.postgresql.org (8.14.3/8.14.3) with ESMTP id pAG8lC5r067273 for ; Wed, 16 Nov 2011 08:47:12 GMT (envelope-from www@wwwmaster.postgresql.org) Received: (from www@localhost) by wwwmaster.postgresql.org (8.14.3/8.14.3/Submit) id pAG8lCdx067272; Wed, 16 Nov 2011 08:47:12 GMT (envelope-from www) Date: Wed, 16 Nov 2011 08:47:12 GMT Message-Id: <201111160847.pAG8lCdx067272@wwwmaster.postgresql.org> To: pgsql-bugs@postgresql.org Subject: BUG #6295: Update fails on empty concatenated strings From: "Jonas Forsman" Content-Type: text/plain; charset=utf-8 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 201111/114 X-Sequence-Number: 31709 The following bug has been logged online: Bug reference: 6295 Logged by: Jonas Forsman Email address: jfo123@hotmail.com PostgreSQL version: 8.4.9 Operating system: Ubuntu 10.04 LTS Description: Update fails on empty concatenated strings Details: Field description (note the field name is "comment") : comment character varying(2048) sql: UPDATE user SET comment= E'[2011-11-16] Note to myself no: 171\\n' || comment WHERE userid=1 This query fails if comment is an empty string or null. This works: UPDATE user SET comment= E'[2011-11-16] Note to myself no: 171\\n' || comment || '' WHERE userid=1