X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by postgresql.org (Postfix) with ESMTP id A2FE29DC9D3 for ; Fri, 24 Mar 2006 14:10:20 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 92789-04 for ; Fri, 24 Mar 2006 14:10:20 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey- Received: from sss.pgh.pa.us (sss.pgh.pa.us [66.207.139.130]) by postgresql.org (Postfix) with ESMTP id 3C73F9DC860 for ; Fri, 24 Mar 2006 14:10:18 -0400 (AST) Received: from sss2.sss.pgh.pa.us (tgl@localhost [127.0.0.1]) by sss.pgh.pa.us (8.13.6/8.13.6) with ESMTP id k2OIAGKT006166; Fri, 24 Mar 2006 13:10:16 -0500 (EST) To: "Fichtenelch" cc: pgsql-jdbc@postgresql.org Subject: Re: Exception using dollar-quoted string In-reply-to: <000201c64f61$88342aa0$1530a8c0@hgworkstation0> References: <000201c64f61$88342aa0$1530a8c0@hgworkstation0> Comments: In-reply-to "Fichtenelch" message dated "Fri, 24 Mar 2006 17:39:33 +0100" Date: Fri, 24 Mar 2006 13:10:16 -0500 Message-ID: <6165.1143223816@sss.pgh.pa.us> From: Tom Lane X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, score=0.114 required=5 tests=[AWL=0.114] X-Spam-Score: 0.114 X-Spam-Level: X-Archive-Number: 200603/102 X-Sequence-Number: 14883 "Fichtenelch" writes: > when I'm trying to execute the following command with a java.sql.Statement > an error occurs: > CREATE OR REPLACE FUNCTION test(text) RETURNS void AS $$ DECLARE tmp text; > BEGIN tmp := 'test'; END; $$ LANGUAGE plpgsql; I'm pretty sure the jdbc driver doesn't understand dollar-quoting yet. (Patches to fix this would be gratefully accepted no doubt...) regards, tom lane