X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [64.117.225.181]) by svr1.postgresql.org (Postfix) with ESMTP id 5387DCCE04 for ; Fri, 18 Jul 2003 21:17:55 +0000 (GMT) Received: from svr1.postgresql.org ([64.117.224.193]) by localhost (svr5.postgresql.org [64.117.225.181]) (amavisd-new, port 10024) with ESMTP id 76867-07 for ; Fri, 18 Jul 2003 21:18:15 +0000 (GMT) Received: from exchange.hq.openratings.com (unknown [141.149.165.226]) by svr1.postgresql.org (Postfix) with ESMTP id 234B4CBA17 for ; Fri, 18 Jul 2003 18:17:43 -0300 (ADT) Received: from openratings.com (cancun.hq.openratings.com [10.0.0.225]) by exchange.hq.openratings.com with SMTP (Microsoft Exchange Internet Mail Service Version 5.5.2653.13) id 38QM40P0; Fri, 18 Jul 2003 17:18:15 -0400 Message-ID: <3F186430.8030908@openratings.com> Date: Fri, 18 Jul 2003 17:18:40 -0400 From: Dmitry Tkach User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Darin Ohashi Cc: pgsql-jdbc-list Subject: Re: Prepared Statements References: In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/161 X-Sequence-Number: 7545 > > >Just as a data point, both postgresql's documentation for PREPARE > >http://www.postgresql.org/docs/view.php?version=7.3&idoc=0&file=sql-prepare.html > >and IBM's > >http://www-3.ibm.com/cgi-bin/db2www/data/db2/udb/winos2unix/support/document.d2w >/report?fn=db2v7s0sqls0645.htm#HDRPREPH2 > >imply that only data can be passed in. Its by implication because they discuss >the "data" having a "datatype". I'm not sure this would make sense if you were >allowed to pass in strings containing SQL syntax. > > > That's fine. I just don't know why you refuse to call a set, containing numbers (or strings or whatever else) 'data'... What about arrays by the way? Is {1,2,3,4} not 'data' too? There is a similar problem with arrays in the current driver (that is just about to become worth with this patch) too - the only way I know to send in an array to a statement like update mytable set array_field = ? where id=? is, again, to use setObject () with the properly constructed string representation of the array (there is a setArray(), but no way to construct the actual java.sql.Array object to pass there) It sounds like we are about to arrive to the new definition of 'data' as "something that is supported by our jdbc driver" :-) Dima