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 D99DCD1C910 for ; Mon, 21 Jul 2003 15:34:17 +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 77193-03 for ; Mon, 21 Jul 2003 15:34:17 +0000 (GMT) Received: from webmail.muc.domues.com (webmail.muc.domeus.com [62.67.54.176]) by svr1.postgresql.org (Postfix) with ESMTP id 2DE64D1C92B for ; Mon, 21 Jul 2003 12:34:16 -0300 (ADT) Received: from coppola.ecircle.de ([192.168.1.142]) by webmail.muc.domues.com (8.11.3/8.11.3/SuSE Linux 8.11.1-0.5) with ESMTP id h6LFYBk31638 for ; Mon, 21 Jul 2003 17:34:11 +0200 Subject: Re: Prepared Statements From: Csaba Nagy To: pgsql-jdbc-list In-Reply-To: <3F1C0613.9090100@redhat.com> References: <1058550328.19657.168.camel@topanga.toronto.redhat.com> <3F183423.9030900@openratings.com> <1058551402.20165.177.camel@topanga.toronto.redhat.com> <3F183AE0.8060204@openratings.com> <20030719012555.GA20158@opencloud.com> <3F1AC5D1.4010307@openratings.com> <20030721000241.GB665@opencloud.com> <3F1BF852.8090400@openratings.com> <20030721143614.GH2506@opencloud.com> <3F1BFC10.5050408@openratings.com> <20030721150702.GK2506@opencloud.com> <3F1C0613.9090100@redhat.com> Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Mailer: Ximian Evolution 1.0.8 (1.0.8-11) Date: 21 Jul 2003 17:34:11 +0200 Message-Id: <1058801651.25132.345.camel@coppola.ecircle.de> Mime-Version: 1.0 X-Virus-Scanned: by amavisd-new at postgresql.org X-Archive-Number: 200307/218 X-Sequence-Number: 7602 Well, looks like Dima's problem can be solved after all while still being standards compliant in the standard cases :-) Still, the individual data types should be validated and correctly escaped. If it counts at all, I would vote with this approach. Just one more question Dima, how will you at runtime that the current driver supports this functionality ? (for that matter, how do you know now ?) Cheers, Csaba. > Oliver, > > I think Dima is arguing that Collection could be treated as an special case > where it indicates a list of something instead of a single something. > > So, we would iterate through this Collection using its iterator and, for each > Object obtained, act like a setObject has been used with that Object and the > JAVA TYPE as an argument. > > The Types.OTHER is used for database specific SQL types or for Dynamic Data > Access support. As the Collection class is not a data type there is no chance > of confusion. > > It seems that Dima's idea can indeed work. > > Regards, > Fernando