Re: [BUGS] no way in LargeObject API to detect short read?

Поиск
Список
Период
Сортировка
От Bruce Momjian
Тема Re: [BUGS] no way in LargeObject API to detect short read?
Дата
Msg-id 200101241422.JAA15335@candle.pha.pa.us
обсуждение исходный текст
Ответы Re: [BUGS] no way in LargeObject API to detect short read?  (aoki@acm.org (Paul M. Aoki))
Список pgsql-jdbc
Anyone able to fix this?

> 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
>
>


--
  Bruce Momjian                        |  http://candle.pha.pa.us
  pgman@candle.pha.pa.us               |  (610) 853-3000
  +  If your life is a hard drive,     |  830 Blythe Avenue
  +  Christ can be your backup.        |  Drexel Hill, Pennsylvania 19026

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [BUGS] JDBC PreparedStatement.setMaxRows() affects other objects instantiated from this class and it's parent class
Следующее
От: Bruce Momjian
Дата:
Сообщение: emails