From: | Barry Lind <barry(at)xythos(dot)com> |
---|---|
To: | Jeff Hoffmann <jeff(at)propertykey(dot)com> |
Cc: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: Binary Cursors (& Geometric Type Support) |
Date: | 2002-09-24 18:53:01 |
Message-ID: | 3D90B48D.2080204@xythos.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
Jeff,
I use both binary and regular cursors in my code without any apparent
problems. I am not sure what you mean by 'Is this the best way to use
cursors with this driver?'
thanks,
--Barry
Jeff Hoffmann wrote:
> Barry Lind wrote:
>
>> Jeff,
>>
>> Since the curror is returning binary data, the only method that works
>> re retrieve the data is getBytes(). Get Object will not work with
>> binary cursors.
>
>
> Gotcha. I was hoping getObject would automagically do the type
> conversion. If only the bytes would be in the right order do use the
> DataInput classes, my life would have been a little easier, but it
> apparently works, so I guess I'll just take this as a learning
> experience. I guess my other question should have been "Is this the
> best way to use cursors with this driver?" I was pretty much directly
> translating from a C program, but is there a better way to do it, both
> for binary and regular cursors?
>
> ----
> Jeff Hoffmann
> PropertyKey.com
>
>
From | Date | Subject | |
---|---|---|---|
Next Message | Felipe Schnack | 2002-09-24 21:06:09 | what this error message? |
Previous Message | Neil Conway | 2002-09-23 22:44:58 | Re: Postgres 7.3b1 + JDBC3 (2002-09-05) truncates SQL commands? |