| От | David Johnston |
|---|---|
| Тема | Re: JDBC & custom type of variable types (!) |
| Дата | |
| Msg-id | 1385568825883-5780590.post@n5.nabble.com обсуждение исходный текст |
| Ответ на | JDBC & custom type of variable types (!) (Marc Mamin <M.Mamin@intershop.de>) |
| Список | pgsql-jdbc |
Marc Mamin-2 wrote > Can I rely on a ClassCastException as below to find the correct matching? > even when the custom type has NULL(s) in it ? Even if you could you should not. Generating exceptions is expensive. Try "instanceof" testing instead. I don't know enough bounce custom types in JDBC but as the column has the type, not the value, the result of getObject should be known even if NULL is involved. David J. -- View this message in context: http://postgresql.1045698.n5.nabble.com/JDBC-custom-type-of-variable-types-tp5780512p5780590.html Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com.
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера