From: | Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> |
---|---|
To: | aoki(at)acm(dot)org, pgsql-bugs(at)postgresql(dot)org |
Subject: | Re: no way in LargeObject API to detect short read? |
Date: | 2001-02-07 03:42:46 |
Message-ID: | 200102070342.WAA14495@candle.pha.pa.us |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-bugs pgsql-jdbc |
This is fixed in the current 7.1 snapshot.
> Paul M. Aoki (aoki(at)acm(dot)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(at)candle(dot)pha(dot)pa(dot)us | (610) 853-3000
+ If your life is a hard drive, | 830 Blythe Avenue
+ Christ can be your backup. | Drexel Hill, Pennsylvania 19026
From | Date | Subject | |
---|---|---|---|
Next Message | Nat Howard | 2001-02-07 04:46:53 | 7.1beta4 problem on freebsd 4.2 with JSDK 1.1.8. |
Previous Message | Tatsuo Ishii | 2001-02-07 01:12:52 | Re: [HACKERS] Re: syslog logging setup broken? |
From | Date | Subject | |
---|---|---|---|
Next Message | Nat Howard | 2001-02-07 05:19:58 | 7.1beta4 jdbc problem on freebsd 4.2 with JSDK 1.1.8. |
Previous Message | Franck Martin | 2001-02-06 23:26:19 | RE: GIS-type databases using PostgreSQL |