X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 7FBB8545F2 for ; Tue, 8 Mar 2005 13:09:43 +0000 (GMT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 59152-06 for ; Tue, 8 Mar 2005 13:09:38 +0000 (GMT) Received: from net2.micro-automation.com (net2.micro-automation.com [64.7.141.29]) by svr1.postgresql.org (Postfix) with SMTP id C740953C92 for ; Tue, 8 Mar 2005 13:09:37 +0000 (GMT) Received: (qmail 20232 invoked from network); 8 Mar 2005 13:08:42 -0000 Received: from dcdsl.ebox.com (HELO ?192.168.1.36?) (davec@64.7.143.116) by net2.micro-automation.com with SMTP; 8 Mar 2005 13:08:42 -0000 Message-ID: <422DA40F.5010206@fastcrypt.com> Date: Tue, 08 Mar 2005 08:09:35 -0500 From: Dave Cramer Reply-To: pg@fastcrypt.com Organization: Postgres International User-Agent: Mozilla Thunderbird 1.0 (X11/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Guillaume Cottenceau Cc: Silvio Bierman , PostgreSQL JDBC Subject: Re: PreparedStatement#setString on non-string parameters References: <422D9B80.6080306@fastcrypt.com> <87y8cyl2j2.fsf@meuh.mnc.ch> In-Reply-To: <87y8cyl2j2.fsf@meuh.mnc.ch> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.039 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200503/64 X-Sequence-Number: 12457 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 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