| От | Holger Klawitter |
|---|---|
| Тема | Re: unterminated quoted string |
| Дата | |
| Msg-id | 200304150959.02490.lists@klawitter.de обсуждение исходный текст |
| Ответ на | Re: unterminated quoted string ("Alexey Yudichev" <Alexey@francoudi.com>) |
| Список | pgsql-jdbc |
> > > and if address is an empty string, sometimes (very rarely) i get
> > >
> > > java.sql.SQLException: ERROR: Unterminated quoted string
I once in a while got a similar error when somehow a '\0' managed to sneek
inside a string. As a result, the whole Tomcat<->Postgresql communication
stopped (in most cases). The problem probably comes from the different
treatment of zeroes in Strings in Java and C/C++.
I solved the problem by filtering out such zeroes before passing them as
parameters into prepared statements.
Mit freundlichem Gruß / With kind regards
Holger Klawitter
--
lists@klawitter.de
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера