| От | Lew |
|---|---|
| Тема | Re: SQLException.getErrorCode ? |
| Дата | |
| Msg-id | hrlja3$dl7$1@news.albasani.net обсуждение |
| Ответ на | Re: SQLException.getErrorCode ? (Maxime Lévesque <maxime.levesque@gmail.com>) |
| Список | pgsql-jdbc |
On 05/01/2010 08:17 PM, Maxime Lévesque wrote: > > I was just thinking that putting the getSQLState string in the > exception's toString > message would go a long way in hinting the users that postgres [sic] does > provide error codes. Umm, the SQLException documentation is quite clear the 'getErrorCode()' returns only vendor-specific codes and that 'getSQLState()' returns the SQL state value. Since the latter is standard and the former is not, that already "goes a long way [to] hinting ... that" PG provides SQL Standard codes. Nothing further is needed. <http://java.sun.com/javase/6/docs/api/java/sql/SQLException.html> It seems fair that there is a presumption of knowledge of the standard. -- Lew
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера