From: | Peter T Mount <peter(at)retep(dot)org(dot)uk> |
---|---|
To: | Martin Schild <maet(at)gmx(dot)de> |
Cc: | pgsql-interfaces(at)postgresql(dot)org |
Subject: | Re: object id |
Date: | 2001-03-06 11:57:11 |
Message-ID: | 983879831.3aa4d097bf217@webmail.retep.org.uk |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-interfaces pgsql-jdbc |
Quoting Martin Schild <maet(at)gmx(dot)de>:
> Hi,
>
> I'm using the setBytes() method of jdbc to store a large object to
> database. Now i want to store the object id to another table. Is there
> a
>
> possibility to get the oid of an object directly after the object is
> stored to store this id into another table.
setBytes() actually stores the large object's OID in that column, so to get the
oid, simply use getInt() or getString() on the same column.
Only getBytes() & get*Stream() methods (as well as the set* equivalents)
actually operate on the large object itself. The others would see just the oid
value.
Peter
--
Peter Mount peter(at)retep(dot)org(dot)uk
PostgreSQL JDBC Driver: http://www.retep.org.uk/postgres/
RetepPDF PDF library for Java: http://www.retep.org.uk/pdf/
From | Date | Subject | |
---|---|---|---|
Next Message | Enrico Comini | 2001-03-06 15:06:48 | JDBC |
Previous Message | Michael Meskes | 2001-03-06 08:40:28 | Re: return codes |
From | Date | Subject | |
---|---|---|---|
Next Message | The Hermit Hacker | 2001-03-06 12:17:31 | Re: JBuilder4 ... |
Previous Message | Peter T Mount | 2001-03-06 11:45:10 | Re: JBuilder4 ... |