X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 327D8329D03 for ; Tue, 14 Sep 2004 23:52:51 +0100 (BST) 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 66324-05 for ; Tue, 14 Sep 2004 22:52:39 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id E1C8C329C6B for ; Tue, 14 Sep 2004 23:52:40 +0100 (BST) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1C7M9o-0005xi-00; Wed, 15 Sep 2004 10:52:16 +1200 Message-ID: <41477610.8070202@opencloud.com> Date: Wed, 15 Sep 2004 10:52:00 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Kris Jurka Cc: Tim Penhey , pgsql-jdbc@postgresql.org Subject: Re: Problem with dollar-quoted CREATE OR REPLACE FUNCTION References: <41470089.8010207@penhey.net> In-Reply-To: Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200409/63 X-Sequence-Number: 10953 Kris Jurka wrote: > Your options seem to be: > - don't use dollar quoting > - use the 7.4 driver which doesn't try to split queries > - teach the driver about dollar quoting It's a pity the grammar doesn't let you specify the function body as a parameter, then you could just use a PreparedStatement and avoid the quoting problems altogether.. -O