Re: Prepared Statements

Поиск
Список
Период
Сортировка
Искать
От
Fernando Nasser
Тема
Re: Prepared Statements
Дата
Msg-id
3F189516.2020706@redhat.com
Список
Дерево обсуждения
Re: Prepared Statements Michael Stephenson <mstephenson@tirin.openworld.co.uk>
Dmitry Tkach wrote:
>> I would be surprised if there was not a document
>> somewhere that specified what is and is not valid to pass via a "?".
>>  
>>
> If there is any, I've never heard of it...
> 

It is in the JDBC spec.  For each function and JDBC type it clearly 
states what is the SQL type to be sent.  It clearly indicates that each 
'?' corresponds to a single value of a standard SQL type.

Things like sending a series of values (1, 2, 3, 4, 5) or x'b4' are 
hacks that explore bugs in a non-JDBC compliant driver.


-- 
Fernando Nasser
Red Hat Canada Ltd.                     E-Mail:  fnasser@redhat.com
2323 Yonge Street, Suite #300
Toronto, Ontario   M4P 2C9

В списке pgsql-jdbc по дате отправления
От: Dmitry Tkach
Дата:
Сообщение: Re: Prepared Statements
От: Oliver Jowett
Дата:
Сообщение: Re: Prepared Statements
FAQ