| От | Thomas Kellerer |
|---|---|
| Тема | Re: One question about callablestatement |
| Дата | |
| Msg-id | n7obcm$3fc$1@ger.gmane.org обсуждение исходный текст |
| Ответ на | One question about callablestatement (张元超 <zhangyuanchao@highgo.com>) |
| Список | 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\"");
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера