Re: Prepared Statements
От | Csaba Nagy |
---|---|
Тема | Re: Prepared Statements |
Дата | |
Msg-id | 1058801651.25132.345.camel@coppola.ecircle.de обсуждение исходный текст |
Ответ на | Re: Prepared Statements (Fernando Nasser <fnasser@redhat.com>) |
Ответы |
Re: Prepared Statements
|
Список | pgsql-jdbc |
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
В списке pgsql-jdbc по дате отправления: