Re: One question about callablestatement

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: One question about callablestatement
Date: 2016-01-20 16:07:47
Message-ID: n7obcm$3fc$1@ger.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-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\"");

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Pavel Raiskup 2016-01-20 22:03:55 Re: Step towards being able to build on Linux (Pull request #435)
Previous Message Vladimir Sitnikov 2016-01-20 15:18:16 Re: Step towards being able to build on Linux (Pull request #435)