Re: Unable to prepare a statement when the object names contain more than one $ symbol
В списке pgsql-jdbc по дате отправления:
| От | Michael Paesold |
|---|---|
| Тема | Re: Unable to prepare a statement when the object names contain more than one $ symbol |
| Дата | |
| Msg-id | 46937FCD.7060409@gmx.at обсуждение исходный текст |
| Ответ на | Re: Unable to prepare a statement when the object names contain more than one $ symbol (Tom Lane <tgl@sss.pgh.pa.us>) |
| Ответы |
Re: Unable to prepare a statement when the object names
contain more than one $ symbol
|
| Список | pgsql-jdbc |
Tom Lane schrieb:
> Kris Jurka <books@ejurka.com> writes:
>> On Mon, 9 Jul 2007, Altaf Malik wrote:
>>> PreparedStatement pstmt = con.prepareStatement("insert into a$b$c
>>> values( ? , ?)");
>
>> This is a bug in dollar quote parsing. It assumes that any potential
>> dollar quote start will have an end tag.
>
> If it thinks that's a dollar quote start, it's wrong already... that's
> a perfectly valid table name. (Although personally I'd suggest that the
> OP avoid dollar signs in identifiers, since they're none too portable.)
I guess I missed that case when implementing dollar quoting in the
driver. I will have a look at it shortly.
Best Regards
Michael Paesold
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера