Re: setUseServerPrepare & typecasts

From: Aaron Mulder <ammulder(at)alumni(dot)princeton(dot)edu>
To: PostgreSQL JDBC <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: setUseServerPrepare & typecasts
Date: 2002-11-13 23:49:12
Message-ID: Pine.LNX.4.44.0211131848020.26423-100000@www.princetongames.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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)

Aaron

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Nic Ferrier 2002-11-13 23:57:00 Re: streaming result sets: progress
Previous Message Aaron Mulder 2002-11-13 23:47:28 Re: JDBC3 and DataSource