X-Original-To: pgsql-sql@postgresql.org Received: from localhost (unknown [64.117.224.193]) by developer.postgresql.org (Postfix) with ESMTP id 5C7069252FF for ; Wed, 21 May 2003 08:32:25 -0400 (EDT) Received: from developer.postgresql.org ([64.117.224.193]) by localhost (developer.postgresql.org [64.117.224.193:10024]) (amavisd-new) with ESMTP id 15993-05 for ; Wed, 21 May 2003 08:31:52 -0400 (EDT) Received: from news.hub.org (unknown [64.117.225.234]) by developer.postgresql.org (Postfix) with ESMTP id 5D1BB92510A for ; Wed, 21 May 2003 08:31:52 -0400 (EDT) Received: by news.hub.org (Postfix, from userid 8) id 5A1BA2534AC; Wed, 21 May 2003 08:31:45 -0400 (EDT) From: "Frankie Lam" X-Newsgroups: comp.databases.postgresql.sql Subject: replace() function problem Date: Wed, 21 May 2003 20:32:28 +0800 Organization: Hub.Org Networking Services (http://www.hub.org) Lines: 19 Message-ID: X-Complaints-To: usenet@news.hub.org X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1106 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 To: pgsql-sql@postgresql.org X-Virus-Scanned: by amavisd-new X-Archive-Number: 200305/408 X-Sequence-Number: 13573 Hi all, I use replace function at psql prompt, but the result turns out to be weired... -------------8<-------------------------- twins=# select replace('%a', ' ', ' '); replace ----------------------- -0x1.fe98800000001p+0 (1 row) ------------->8-------------------------- Why is that so? Is it a bug? Thanks... Frankie Lam