| From: | Marc Herbert <Marc(dot)Herbert(at)emicnetworks(dot)com> |
|---|---|
| To: | pgsql-jdbc(at)postgresql(dot)org |
| Subject: | Re: getObject(<oid>) returns integer instead of LargeObject |
| Date: | 2005-07-26 10:20:09 |
| Message-ID: | 20050726102009.GB17905@emicnetworks.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-jdbc |
On Fri, Jul 22, 2005 at 01:41:19PM -0500, Kris Jurka wrote:
>
>
> On Fri, 22 Jul 2005, Marc Herbert wrote:
>
> > Is there some good reason for getObject(<some oid column>) to return the
> > bare oid integer instead of the actual LargeObject handle ?
>
> This makes the assumption that the only use of oids is for large objects.
> What if someone wrote SELECT oid,relname FROM pg_class?
Thanks for answering.
What would you recommend to unambiguously identify a Blob column in a
arbitrary ResultSet, using only JDBC?
For instance could you trust
Types.BLOB == rs.getMetaData.getColumnType() in every case?
Is there any other way?
Would it depend on the latest version of the driver/database?
Thanks in advance for you help!
PS: why do LOBs seem to use regular oids instead of some other less
ambiguous say, "loid" ?
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Dave Cramer | 2005-07-26 10:20:17 | Re: work in progress: timestamp patch |
| Previous Message | Oliver Jowett | 2005-07-26 07:08:05 | Re: Java's set of timezone names |