Re: setUseServerPrepare & typecasts

From: Scott Lamb <slamb(at)slamb(dot)org>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: setUseServerPrepare & typecasts
Date: 2002-11-14 01:16:22
Message-ID: 3DD2F966.7080000@slamb.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Aaron Mulder wrote:
> On Wed, 13 Nov 2002, Barry Lind wrote:
>
>>Scott,
>>
>>That makes sense because null takes a different code path than a real
>>value. Thanks for the test case. I will look into this.
>
>
> But I don't think you're supposed to use setObject for a null
> value. Instead, try
>
> setNull(1, Types.INTEGER)

Hmm. Yeah, I guess the API docs don't really describe what setObject is
supposed to do on null. But setNull(1, Types.INTEGER) seems to have the
same problem.

Thanks,
Scott

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Scott Lamb 2002-11-14 01:20:33 Re: setUseServerPrepare & typecasts
Previous Message Michael Ansley 2002-11-14 00:07:21 Re: JDBC3 and DataSource