| От | Peter Mount |
|---|---|
| Тема | Re: [JDBC] no way in LargeObject API to detect short read? |
| Дата | |
| Msg-id | 5.0.2.1.0.20010130233100.00a21860@mail.retep.org.uk обсуждение исходный текст |
| Ответ на | no way in LargeObject API to detect short read? (pgsql-bugs@postgresql.org) |
| Список | pgsql-bugs |
At 01:58 14/11/00 -0500, pgsql-bugs@postgresql.org wrote: >Paul M. Aoki (aoki@acm.org) reports a bug with a severity of 3 >The lower the number the more severe it is. > >Short Description >no way in LargeObject API to detect short read? > >Long Description >org.postgresql.largeobject.LargeObject.read(byte[],int,int) returns void >instead of int. there's therefore no reliable, non-exceptional way to >detect short reads. > >the natural way to write blocked-read loops would be to assume that >read(byte[],int,int) returned the number of bytes read or (e.g.) -1 on EOF. > >Sample Code > > >No file was uploaded with this report This method now returns the number of bytes read. It will be in CVS by 0900GMT tomorrow. Peter
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера