| От | David Wall |
|---|---|
| Тема | Detecting 'socket errors' - SQLSTATE patch |
| Дата | |
| Msg-id | 043401c3507a$73e5d460$3201a8c0@rasta обсуждение исходный текст |
| Ответ на | Fix for receiving empty query errors. (Kim Ho <kho@redhat.com>) |
| Список | pgsql-jdbc |
> >>When we get the SQLSTATE patch in you'll be able to do:
> >>if ((e.getSQLState() != null) && (e.getSQLState().equals("08S01")))
> >>throw new ExplainException("Communication link error: " +
e.getMessage());
....
> First of all, this is plain SQL + JDBC specs.
Really! Wow, now that's cool. When will the SQLSTATE patch be available?
And it will really work with Oracle and DB2, too? That's precisely the kind
of solution I'm looking for. Perhaps I'll write my code to work with or
without it for now, unless that patch will be available shortly. I need my
solution to be in place in a week or so, and I think my current coding
workaround will be compatible (sending the Connection and SQLException to a
pool handler), though this may save the 'select 1' hack.
David
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера