| От | Oliver Jowett |
|---|---|
| Тема | Re: SQLException and error code |
| Дата | |
| Msg-id | 42E6C843.70307@opencloud.com обсуждение исходный текст |
| Ответ на | Re: SQLException and error code (Peter.Zoche@materna.de) |
| Список | pgsql-jdbc |
Peter.Zoche@materna.de wrote: > Because in the postgresql documentation you can find the following page: > > http://www.postgresql.org/docs/8.0/interactive/errcodes-appendix.html#ERRCOD > ES-TABLE > > There you can see all ERROR CODES! Those codes are actually SQLSTATEs. > So why is there a method getErrorCode(), It's defined by the JDBC spec, we don't have any choice about whether it is there or not. > if the only thing it does > is to return zero? Back to my original question: what are you expecting it to return? It can't return a SQLSTATE because it returns an int and SQLSTATE is alphanumeric. We don't have any other useful error code. So we just return 0 because we have to return *something*. -O
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера