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 0E650329C82 for ; Tue, 14 Sep 2004 15:55:59 +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 95290-07 for ; Tue, 14 Sep 2004 14:55:51 +0000 (GMT) Received: from smtp.nildram.co.uk (smtp.nildram.co.uk [195.112.4.54]) by svr1.postgresql.org (Postfix) with ESMTP id 24FEF329D58 for ; Tue, 14 Sep 2004 15:55:54 +0100 (BST) Received: from [127.0.0.1] (tpsoft.gotadsl.co.uk [81.6.252.137]) by smtp.nildram.co.uk (Postfix) with ESMTP id D53CD254040; Tue, 14 Sep 2004 15:55:51 +0100 (BST) Message-ID: <4147067C.6070008@penhey.net> Date: Tue, 14 Sep 2004 15:55:56 +0100 From: Tim Penhey User-Agent: Mozilla Thunderbird 0.7.3 (Windows/20040803) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pg@fastcrypt.com, pgsql-jdbc@postgresql.org Subject: Re: Problem with dollar-quoted CREATE OR REPLACE FUNCTION References: <41470089.8010207@penhey.net> <1095172682.1549.65.camel@localhost.localdomain> In-Reply-To: <1095172682.1549.65.camel@localhost.localdomain> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.3 tagged_above=0.0 required=5.0 tests=UPPERCASE_25_50 X-Spam-Level: X-Archive-Number: 200409/58 X-Sequence-Number: 10948 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