Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1aLvIi-0007d6-VG for pgsql-jdbc@arkaria.postgresql.org; Wed, 20 Jan 2016 16:08:05 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.84) (envelope-from ) id 1aLvIi-0004JD-DQ for pgsql-jdbc@arkaria.postgresql.org; Wed, 20 Jan 2016 16:08:04 +0000 Received: from magus.postgresql.org ([2a02:c0:301:0:ffff::29]) by malur.postgresql.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA384:256) (Exim 4.84) (envelope-from ) id 1aLvIi-0004J2-1W for pgsql-jdbc@postgresql.org; Wed, 20 Jan 2016 16:08:04 +0000 Received: from plane.gmane.org ([80.91.229.3]) by magus.postgresql.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:256) (Exim 4.84) (envelope-from ) id 1aLvIe-0007T9-K5 for pgsql-jdbc@postgresql.org; Wed, 20 Jan 2016 16:08:03 +0000 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1aLvIZ-0001ww-SG for pgsql-jdbc@postgresql.org; Wed, 20 Jan 2016 17:07:55 +0100 Received: from ppp-46-244-219-14.dynamic.mnet-online.de ([46.244.219.14]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Jan 2016 17:07:55 +0100 Received: from spam_eater by ppp-46-244-219-14.dynamic.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 20 Jan 2016 17:07:55 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: Re: One question about callablestatement Date: Wed, 20 Jan 2016 17:07:47 +0100 Lines: 17 Message-ID: References: <93de5deeabac41d99b0cd910fdfc6c64@EX01.highgo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=gbk; format=flowed Content-Transfer-Encoding: 8bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ppp-46-244-219-14.dynamic.mnet-online.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 In-Reply-To: <93de5deeabac41d99b0cd910fdfc6c64@EX01.highgo.com> X-Pg-Spam-Score: -2.4 (--) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org ÕÅÔª³¬ schrieb am 20.01.2016 um 03:14: > Hi, > Now ,i found one question about callablestatement.if i have a function whoes name containts '}', >and i call it by callablestatement,there will be a 'PSQLException'. Like this: > > The function name i used is "test_fu}n2".Yeah,i kown that may be nobody will create a function with some >name like this,but, it can be created successfully.Ok, i check the code of jdbc,i found some problem lead to >the question above. The code file is org/postgresql/core/Parser.java,and row 603 to row 646,the handle of '}' . > You don't need a CallableStatement to call a function in Postgres. What happens if you use a regular Statement and executeQuery("select \"test_fu}n2\""); -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc