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 EABF7D1C910 for ; Mon, 21 Jul 2003 15:51:59 +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 56457-07 for ; Mon, 21 Jul 2003 15:51:58 +0000 (GMT) Received: from exchange.hq.openratings.com (unknown [141.149.165.226]) by svr1.postgresql.org (Postfix) with ESMTP id 46900D1C92B for ; Mon, 21 Jul 2003 12:51:58 -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 38QMVXJ5; Mon, 21 Jul 2003 11:51:57 -0400 Message-ID: <3F1C0C2A.8090108@openratings.com> Date: Mon, 21 Jul 2003 11:52:10 -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: Csaba Nagy Cc: pgsql-jdbc-list Subject: Re: Prepared Statements 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> <1058801651.25132.345.camel@coppola.ecircle.de> In-Reply-To: <1058801651.25132.345.camel@coppola.ecircle.de> 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/275 X-Sequence-Number: 7659 Csaba Nagy wrote: >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 ?) > I am not sure what you mean by 'runtime' in this context. *At runtime* i just need to know *which* driver I am using. There is, of course, still work to be done at the implementation stage to figure out and implement the proper way of dealing with that driver. So, the way I know is same as usual - by looking at the source and/or documentation of the driver. What I am avoiding is direct references to the vendor-specific classes/packages (like org.postgresql.*), because, if I had those, the code would not compile unless I have all the drivers available at compile time. That's what I am trying to avoid. I understand that I still have to know specifics of the drivers I support, and have driver-dependent logic in the code, that uses the right way to deal with the driver at runtime. But I am trying to keep that logic independent from the actual driver implementation, so that it does not require the driver to compile. Dima > >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 >> >> > > > >---------------------------(end of broadcast)--------------------------- >TIP 8: explain analyze is your friend > >