X-Original-To: pgsql-sql-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 66E953A5D7F for ; Wed, 12 Jan 2005 18:59:04 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 61191-09 for ; Wed, 12 Jan 2005 18:58:56 +0000 (GMT) Received: from tigger.fuhr.org (tigger.fuhr.org [63.214.45.158]) by svr1.postgresql.org (Postfix) with ESMTP id 1AE503A5DB0 for ; Wed, 12 Jan 2005 18:58:56 +0000 (GMT) Received: from winnie.fuhr.org (winnie.fuhr.org [10.1.0.1]) by tigger.fuhr.org (8.13.1/8.13.1) with ESMTP id j0CIwmBI051793 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 12 Jan 2005 11:58:50 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: from winnie.fuhr.org (localhost [127.0.0.1]) by winnie.fuhr.org (8.13.1/8.13.1) with ESMTP id j0CIwmpg095784; Wed, 12 Jan 2005 11:58:48 -0700 (MST) (envelope-from mfuhr@winnie.fuhr.org) Received: (from mfuhr@localhost) by winnie.fuhr.org (8.13.1/8.13.1/Submit) id j0CIwlQt095783; Wed, 12 Jan 2005 11:58:47 -0700 (MST) (envelope-from mfuhr) Date: Wed, 12 Jan 2005 11:58:47 -0700 From: Michael Fuhr To: Edmund Bacon Cc: pgsql-sql@postgresql.org, Kieran Ashley Subject: Re: Problems with Quotes Message-ID: <20050112185847.GA95755@winnie.fuhr.org> References: <6665151E3647D711B27B0090277C004F9AF721@ntexch02s.scs.dra.hmg.gb> <41E5709D.8010705@onesystem.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <41E5709D.8010705@onesystem.com> X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.002 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200501/72 X-Sequence-Number: 19860 On Wed, Jan 12, 2005 at 11:46:53AM -0700, Edmund Bacon wrote: > Perhaps you are forgetting to double up on your quote chars? If that's the problem then 8.0's dollar quoting will simplify the situation: CREATE OR REPLACE FUNCTION foo(text) RETURNS text AS $$ SELECT replace($1, '"', ''); $$ LANGUAGE sql; -- Michael Fuhr http://www.fuhr.org/~mfuhr/