pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: Re: One question about callablestatement
Date: Wed, 20 Jan 2016 17:07:47 +0100
Message-ID: <n7obcm$3fc$1@ger.gmane.org> (raw)
In-Reply-To: <93de5deeabac41d99b0cd910fdfc6c64@EX01.highgo.com>
References: <93de5deeabac41d99b0cd910fdfc6c64@EX01.highgo.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>

张元超 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



view thread (3+ messages)

Message-ID: <n7obcm$3fc$1@ger.gmane.org>
Permalink:  ../n7obcm$3fc$1@ger.gmane.org/
Also on:    postgresql.org/message-id/n7obcm$3fc$1@ger.gmane.org

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: spam_eater@gmx.net
  Subject: Re: One question about callablestatement
  In-Reply-To: <n7obcm$3fc$1@ger.gmane.org>
  References: <93de5deeabac41d99b0cd910fdfc6c64@EX01.highgo.com> <n7obcm$3fc$1@ger.gmane.org>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox