| От | Dmitry Tkach |
|---|---|
| Тема | Re: Prepared Statements |
| Дата | |
| Msg-id | 3F1BFCD0.80507@openratings.com обсуждение исходный текст |
| Ответ на | Re: Prepared Statements (Fernando Nasser <fnasser@redhat.com>) |
| Список | pgsql-jdbc |
> > >>> >> Why not just allow setObject() to take Collection as an argument? >> You would not need any special implementations then... and the >> application would not need to waste cycles on wrapping/unwrapping >> those Arrays every time... >> > > That is an interesting idea. But how do we know the type of the > elements that should go in the list? We will just get java.Objects as > we go through the Collection. > > You can require the 'type' argument to setObject() to specify the target type. Besides, knowing the exact type doesn't really matter much, because you aare going to be quoting everything anyways :-) Dima
В списке pgsql-jdbc по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера