Re: BIGINT vs Java's long

Поиск
Список
Период
Сортировка
От 'Dav Coleman'
Тема Re: BIGINT vs Java's long
Дата
Msg-id 20010807143739.E19044@danger-island.com
обсуждение исходный текст
Ответ на BIGINT vs Java's long  (Dav Coleman <dav@danger-island.com>)
Список 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 по дате отправления:

Предыдущее
От: Rene Pijlman
Дата:
Сообщение: Re: cast in JDBC update
Следующее
От: Rene Pijlman
Дата:
Сообщение: JDBC 2.0 conformance, documentation and todo list