Re: BIGINT vs Java's long - Mailing list pgsql-jdbc

From 'Dav Coleman'
Subject Re: BIGINT vs Java's long
Date
Msg-id 20010807143739.E19044@danger-island.com
Whole thread Raw
In response to BIGINT vs Java's long  (Dav Coleman <dav@danger-island.com>)
List pgsql-jdbc
Well, if I try to use a bit(2048) column instead,of a bunch of bigint's,
how do I get the data from org.postgresql.jdbc2.ResultSet?

I've tried getBinaryStream() and failed, then I tried getBlob() and that
was a disaster.


byte[] buffer = new byte[8];
InputStream is = rs.getBinaryStream(1);
followed with
bytesRead = is.read(buffer, bufferIndex, 8-bufferIndex);

kept giving me the same byte over and over again (decmil value 48)

i thought this was going to be easy :)


--
Dav Coleman
http://www.danger-island.com/dav/

pgsql-jdbc by date:

Previous
From: Rene Pijlman
Date:
Subject: Re: cast in JDBC update
Next
From: Rene Pijlman
Date:
Subject: JDBC 2.0 conformance, documentation and todo list