| От | Oliver Jowett |
|---|---|
| Тема | Re: Why is bool == java.sql.Types.BIT ?? |
| Дата | |
| Msg-id | 43850037.5000608@opencloud.com обсуждение исходный текст |
| Ответ на | Re: Why is bool == java.sql.Types.BIT ?? (Thomas Kellerer <spam_eater@gmx.net>) |
| Ответы |
Re: Why is bool == java.sql.Types.BIT ??
|
| Список | pgsql-jdbc |
Thomas Kellerer wrote: > The problem comes when supporting multiple DBMS. With MS SQL Server a > bit column can only store 0/1 (which is not what the driver returns, as > it uses a java.lang.Boolean) but PG only accepts the literals > true/false. That's why I stumbled over this in the first place. > > So I'll have to check the native type rather then the JDBC type to be sure. Can't you use setBoolean()/getBoolean()? I think that's specified to always work on a BIT column, whatever the real underlying type is. -O
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера