| От | Barry Lind |
|---|---|
| Тема | Re: Using boolean '1' in jdbc2 |
| Дата | |
| Msg-id | 3BA1624A.8020506@xythos.com обсуждение исходный текст |
| Ответ на | Re: Using boolean '1' in jdbc2 (Peter Eisentraut <peter_e@gmx.net>) |
| Список | pgsql-jdbc |
Peter, Good question. There was a mail thread on this probably about six months ago. IIRC this was done so that you could call getBoolean() on an integer column. I think that some other database supported this and they wanted to have postgres support it in the same way. I think that is when the jdbc1 code was patched to support the value '1'. I don't know why the jdbc2 code wasn't changed at the same time. thanks, --Barry Peter Eisentraut wrote: > Bruce Momjian writes: > > >>I noticed that jdbc1 getBoolean allows '1', while jdbc2 does not. The >>following patch makes jdbc2 accept '1' also. Is this OK? >> > > Why? Booleans always come out as 't' or 'f'. > >
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера