X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.224.192]) by svr1.postgresql.org (Postfix) with ESMTP id 2CD0ACCBD4 for ; Sat, 19 Jul 2003 00:51:27 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr4.postgresql.org [64.117.224.192]) (amavisd-new, port 10024) with ESMTP id 08109-02 for ; Sat, 19 Jul 2003 00:51:55 +0000 (GMT) Received: from touchme.toronto.redhat.com (to-telus.redhat.com [207.219.125.105]) by svr1.postgresql.org (Postfix) with ESMTP id 2B2C9CCB9D for ; Fri, 18 Jul 2003 21:51:25 -0300 (ADT) Received: from redhat.com (sebastian-int.corp.redhat.com [172.16.52.221]) by touchme.toronto.redhat.com (Postfix) with ESMTP id 7C88380008E; Fri, 18 Jul 2003 20:51:42 -0400 (EDT) Message-ID: <3F189516.2020706@redhat.com> Date: Fri, 18 Jul 2003 20:47:18 -0400 From: Fernando Nasser Organization: Red Hat Canada User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.0.0) Gecko/20020607 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Dmitry Tkach Cc: Darin Ohashi , pgsql-jdbc-list Subject: Re: Prepared Statements References: <3F185AE6.2@openratings.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/162 X-Sequence-Number: 7546 Dmitry Tkach wrote: >> I would be surprised if there was not a document >> somewhere that specified what is and is not valid to pass via a "?". >> >> > If there is any, I've never heard of it... > It is in the JDBC spec. For each function and JDBC type it clearly states what is the SQL type to be sent. It clearly indicates that each '?' corresponds to a single value of a standard SQL type. Things like sending a series of values (1, 2, 3, 4, 5) or x'b4' are hacks that explore bugs in a non-JDBC compliant driver. -- Fernando Nasser Red Hat Canada Ltd. E-Mail: fnasser@redhat.com 2323 Yonge Street, Suite #300 Toronto, Ontario M4P 2C9