From: | "Jie Liang" <jie(at)stbernard(dot)com> |
---|---|
To: | "Oliver Jowett" <oliver(at)opencloud(dot)com> |
Cc: | "Kris Jurka" <books(at)ejurka(dot)com>, <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: Prepare Statement |
Date: | 2004-06-19 02:14:48 |
Message-ID: | E7E213858379814A9AE48CA6754F5ECB034519CD@mail01.stbernard.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
It works.
Thanks.
Jie Liang
-----Original Message-----
From: Oliver Jowett [mailto:oliver(at)opencloud(dot)com]
Sent: Friday, June 18, 2004 6:39 PM
To: Jie Liang
Cc: Kris Jurka; pgsql-jdbc(at)postgresql(dot)org
Subject: Re: [JDBC] Prepare Statement
Jie Liang wrote:
> Nope, it will get same error msg:
> Myfunction(text) does net exist
Hm, indeed. I just looked at the code and the plain setObject() path
seems slightly broken: it always passes PG_TEXT, not the PGobject's
type.
However, the setObject variant that takes a target SQL type seems ok.
Try this:
> stmt.setObject(1, obj, Types.OTHER);
-O
From | Date | Subject | |
---|---|---|---|
Next Message | Dave Cramer | 2004-06-19 14:30:03 | Re: proposal for CallableStatements to handle multiple out |
Previous Message | Oliver Jowett | 2004-06-19 01:39:14 | Re: Prepare Statement |