Re: bit datatype and getObject()

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: "Kris Jurka" <books(at)ejurka(dot)com>, "Thomas Kellerer" <spam_eater(at)gmx(dot)net>
Cc: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: bit datatype and getObject()
Date: 2010-12-22 19:35:31
Message-ID: 4D11FEA30200002500038998@gw.wicourts.gov
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Kris Jurka <books(at)ejurka(dot)com> wrote:

> returing a String seems easiest, do other people have ideas?

What would the Java String look like for SQL B'101' ?

Would bool[] make any sense for an object type?

I'm not sure byte[] would be out of the question, but it would need
zero padding on one side or the other, and you would lose the exact
length. :-(

What do other drivers do? Is there any guidance in the JDBC
standard?

-Kevin

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Kris Jurka 2010-12-22 20:13:37 Re: bit datatype and getObject()
Previous Message Kris Jurka 2010-12-22 19:24:57 Re: bit datatype and getObject()