pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Fernando Nasser <fnasser@redhat.com>
To: Dmitry Tkach <dmitry@openratings.com>
Cc: Darin Ohashi <DOhashi@maplesoft.com>
Cc: pgsql-jdbc-list <pgsql-jdbc@postgresql.org>
Subject: Re: Prepared Statements
Date: Fri, 18 Jul 2003 20:47:18 -0400
Message-ID: <3F189516.2020706@redhat.com> (raw)
References: <F17255C2B596D3119A5600508B44FA68052EB86A@courier.maplesoft.on.ca>
	<3F185AE6.2@openratings.com>

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




view thread (105+ messages)  latest in thread

Message-ID: <3F189516.2020706@redhat.com>
Permalink:  ../3F189516.2020706@redhat.com/
Also on:    postgresql.org/message-id/3F189516.2020706@redhat.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: fnasser@redhat.com, dmitry@openratings.com, DOhashi@maplesoft.com
  Subject: Re: Prepared Statements
  In-Reply-To: <3F189516.2020706@redhat.com>
  References: <F17255C2B596D3119A5600508B44FA68052EB86A@courier.maplesoft.on.ca> <3F185AE6.2@openratings.com> <3F189516.2020706@redhat.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox