Re: BIGINT vs Java's long

From: "'Dav Coleman'" <dav(at)danger-island(dot)com>
To: Dave Cramer <davec(at)sentricity(dot)com>
Cc: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: BIGINT vs Java's long
Date: 2001-08-07 21:37:39
Message-ID: 20010807143739.E19044@danger-island.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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/

In response to

Browse pgsql-jdbc by date

  From Date Subject
Next Message Rene Pijlman 2001-08-07 21:46:09 JDBC 2.0 conformance, documentation and todo list
Previous Message Greg Zoller 2001-08-07 19:53:25 JDBC2 Array Patch (New feature)