Re: PreparedStatement#setString on non-string parameters - Mailing list pgsql-jdbc

From Dave Cramer
Subject Re: PreparedStatement#setString on non-string parameters
Date
Msg-id 422DA40F.5010206@fastcrypt.com
Whole thread Raw
In response to Re: PreparedStatement#setString on non-string parameters  (Guillaume Cottenceau <gc@mnc.ch>)
List pgsql-jdbc
That makes sense.

I just checked my reference and I can't find any document that suggests
that setString should do a conversion.

setObject is required to by the spec.

Dave

Guillaume Cottenceau wrote:

>Dave Cramer <pg 'at' fastcrypt.com> writes:
>
>
>
>>Silvio,
>>
>>I presume you are talking about setObject ??? I can't find a
>>setString(non-string param)
>>
>>
>
>He says "XML data (..) many numeric values are available as
>Strings" so I think the SQL column is numeric but the rest is
>string (a java string containing the string representation of the
>numeric value).
>
>
>

--
Dave Cramer
http://www.postgresintl.com
519 939 0336
ICQ#14675561


pgsql-jdbc by date:

Previous
From: Guillaume Cottenceau
Date:
Subject: Re: PreparedStatement#setString on non-string parameters
Next
From: Guillaume Cottenceau
Date:
Subject: Re: PreparedStatement#setString on non-string parameters