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 05B10329EB1 for ; Tue, 14 Sep 2004 16:35:35 +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 13665-05 for ; Tue, 14 Sep 2004 15:35:29 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id 0F075329EA9 for ; Tue, 14 Sep 2004 16:35:27 +0100 (BST) Received: (qmail 3807 invoked from network); 14 Sep 2004 15:35:51 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.36?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 14 Sep 2004 15:35:51 -0000 Subject: Re: Problem with dollar-quoted CREATE OR REPLACE FUNCTION From: Dave Cramer Reply-To: pg@fastcrypt.com To: Tim Penhey Cc: "pgsql-jdbc@postgresql.org" In-Reply-To: <4147067C.6070008@penhey.net> References: <41470089.8010207@penhey.net> <1095172682.1549.65.camel@localhost.localdomain> <4147067C.6070008@penhey.net> Content-Type: text/plain Organization: Cramer Consulting Message-Id: <1095176261.1544.71.camel@localhost.localdomain> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.6 Date: Tue, 14 Sep 2004 11:37:41 -0400 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/59 X-Sequence-Number: 10949 Tim, Ideally you should look in the logs, I suspect that if you escaped the $ with \$ it should work. Dave On Tue, 2004-09-14 at 10:55, Tim Penhey wrote: > Dave Cramer wrote: > > >Can you show us the code, logs? > > > >Dave > > > > > > CREATE OR REPLACE FUNCTION quote_test(first INTEGER, second INTEGER) > RETURNS INTEGER AS $BODY$ > DECLARE > result INTEGER; > BEGIN > result := first + second; > RETURN result; > END; > $BODY$ > LANGUAGE 'plpgsql'; > > > This gives the error in eclipse. Didn't mention before but using > MyEclipseIDE plugin for DB access in Eclipse. > > Also, just noticed the jdbc directory with the 8.0 beta. Should I be > using that instead of the pgdev one? > It has pg74.214.jdbc1.jar, pg74.214.jdbc2.jar, pg74.214.jdbc2ee.jar, > pg74.214.jdbc3.jar. Would these be better? > > Tim > -- Dave Cramer 519 939 0336 ICQ # 14675561 www.postgresintl.com