| From: | Oliver Jowett <oliver(at)opencloud(dot)com> |
|---|---|
| To: | Kris Jurka <books(at)ejurka(dot)com> |
| Cc: | Thomas O'Dowd <tom(at)uwillsee(dot)com>, pgsql-jdbc(at)postgresql(dot)org |
| Subject: | Re: Array support |
| Date: | 2005-04-21 21:37:44 |
| Message-ID: | 42681D28.6060408@opencloud.com |
| Views: | Whole Thread | Raw Message | Download mbox | Resend email |
| Thread: | |
| Lists: | pgsql-jdbc |
Kris Jurka wrote:
>
> On Thu, 21 Apr 2005, Thomas O'Dowd wrote:
>>PS. I looked at trying to use PreparedStatement.setArray() but it takes
>>an java.sql.Array, which is just an Interface. I guess I could try
>>creating a class that implements Array and try passing that to
>>setArray() but I'm not even sure if that would work yet either. The
>>setObject() way suggested by the spec is definitely simpler.
>
>
> That will work although there are some requirements for getBaseTypeName I
> think, it must return the pg specific type name used.
More importantly, toString() has to return the data formatted as the
server expects..
-O
| From | Date | Subject | |
|---|---|---|---|
| Next Message | Oliver Jowett | 2005-04-21 21:47:03 | Re: Interval support for Postgres |
| Previous Message | Vernon | 2005-04-21 21:13:49 | What Hibernate Object ID generator is recommanded for PG? |