Re: Prepared Statements

Поиск
Список
Период
Сортировка
Искать
От
Dmitry Tkach
Тема
Re: Prepared Statements
Дата
Msg-id
3F1BFCD0.80507@openratings.com
Ответ на
Re: Prepared Statements (Fernando Nasser)
Список
Дерево обсуждения
Re: Prepared Statements Michael Stephenson <mstephenson@tirin.openworld.co.uk>
>
>
>>>
>> 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 по дате отправления
От: Fernando Nasser
Дата:
Сообщение: Re: Prepared Statements
От: Fernando Nasser
Дата:
Сообщение: Re: Prepared Statements
FAQ