pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Guillaume Cottenceau <gc@mnc.ch>
Cc: Silvio Bierman <sbierman@jambo-software.com>
Cc: PostgreSQL JDBC <pgsql-jdbc@postgresql.org>
Subject: Re: PreparedStatement#setString on non-string parameters
Date: Tue, 08 Mar 2005 08:09:35 -0500
Message-ID: <422DA40F.5010206@fastcrypt.com> (raw)
In-Reply-To: <87y8cyl2j2.fsf@meuh.mnc.ch>
References: <JGEOKLDJHLJNAPFIBKBNCEICDCAA.sbierman@jambo-software.com>
	<422D9B80.6080306@fastcrypt.com>
	<87y8cyl2j2.fsf@meuh.mnc.ch>

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




view thread (14+ messages)  latest in thread

Message-ID: <422DA40F.5010206@fastcrypt.com>
Permalink:  ../422DA40F.5010206@fastcrypt.com/
Also on:    postgresql.org/message-id/422DA40F.5010206@fastcrypt.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: pg@fastcrypt.com, gc@mnc.ch, sbierman@jambo-software.com
  Subject: Re: PreparedStatement#setString on non-string parameters
  In-Reply-To: <422DA40F.5010206@fastcrypt.com>
  References: <JGEOKLDJHLJNAPFIBKBNCEICDCAA.sbierman@jambo-software.com> <422D9B80.6080306@fastcrypt.com> <87y8cyl2j2.fsf@meuh.mnc.ch> <422DA40F.5010206@fastcrypt.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox