From: | Fernando Nasser <fnasser(at)redhat(dot)com> |
---|---|
To: | Dmitry Tkach <dmitry(at)openratings(dot)com> |
Cc: | Darin Ohashi <DOhashi(at)maplesoft(dot)com>, pgsql-jdbc-list <pgsql-jdbc(at)postgresql(dot)org> |
Subject: | Re: Prepared Statements |
Date: | 2003-07-19 00:47:18 |
Message-ID: | 3F189516.2020706@redhat.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
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(at)redhat(dot)com
2323 Yonge Street, Suite #300
Toronto, Ontario M4P 2C9
From | Date | Subject | |
---|---|---|---|
Next Message | Oliver Jowett | 2003-07-19 01:25:55 | Re: Prepared Statements |
Previous Message | Dmitry Tkach | 2003-07-18 21:18:40 | Re: Prepared Statements |