pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Mark Lewis <mark.lewis@mir3.com>
To: Kris Jurka <books@ejurka.com>
Cc: Dave Cramer <pg@fastcrypt.com>
Cc: Michael Guyver <kenevel@googlemail.com>
Cc: List <pgsql-jdbc@postgresql.org>
Subject: Re: Binary tx format for an array?
Date: Fri, 23 Jun 2006 13:59:36 -0700
Message-ID: <1151096376.21238.93.camel@archimedes> (raw)
In-Reply-To: <Pine.BSO.4.63.0606231543240.247@leary2.csoft.net>
References: <30b57570606211026o66e337c9s658387db0b32aeed@mail.gmail.com>
	<17160.1150929667@sss.pgh.pa.us>
	<30b57570606220116h2f216c1eue74e5cfbb41bd5bc@mail.gmail.com>
	<1048.1150995309@sss.pgh.pa.us>
	<1151003773.21238.13.camel@archimedes>
	<30b57570606230122s4827d2ectd470e3c4ff6ad228@mail.gmail.com>
	<5D40D46E-2EFE-4EC1-98B2-642C7C5E3229@fastcrypt.com>
	<30b57570606230523n402acc77uae9184301f44e19e@mail.gmail.com>
	<E3A47647-4BAC-4628-9326-DF2F8B9DDA88@fastcrypt.com>
	<30b57570606230547x6a35451ag7d4a9c697533d0c9@mail.gmail.com>
	<C56E6A5C-357F-4E96-8272-D05AAA69950E@fastcrypt.com>
	<847D8099-EA4C-4692-A01C-7A18B3280D68@fastcrypt.com>
	<1151094723.21238.82.camel@archimedes>
	<Pine.BSO.4.63.0606231543240.247@leary2.csoft.net>

On Fri, 2006-06-23 at 15:46 -0500, Kris Jurka wrote:
> > As far as I can tell from reading the JDBC CVS code, the sequence for
> > preparing and executing a statement for the first time is:
> >
> > PREPARE            (name=my_statement)
> > DESCRIBE STATEMENT (name=my_statement)
> > SYNC/FLUSH
> > Read Responses
> >
> > BIND               (portal=my_portal)
> > DESCRIBE PORTAL    (name=my_portal)
> > EXECUTE            (portal=my_portal)
> > SYNC/FLUSH
> > Read Responses
> >
> 
> Nope. There is no Sync in the middle there.  The driver sends Parse, 
> Describe Statement, Bind, Execute, Sync all at once.  You may be confused 
> by the driver's ability to Parse/Describe/Sync a query to implement 
> ParameterMetaData, but that's an unusual operation, not the normal path.

Ah, yes that's where I was confused.  Now I understand why it was such a
pain to support things like timestamp with/without timezone; you don't
get the describe statement back until you've already run the BIND.

-- Mark



view thread (18+ messages)

Message-ID: <1151096376.21238.93.camel@archimedes>
Permalink:  ../1151096376.21238.93.camel@archimedes/
Also on:    postgresql.org/message-id/1151096376.21238.93.camel@archimedes

 · 

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: mark.lewis@mir3.com, books@ejurka.com, pg@fastcrypt.com, kenevel@googlemail.com
  Subject: Re: Binary tx format for an array?
  In-Reply-To: <1151096376.21238.93.camel@archimedes>
  References: <30b57570606211026o66e337c9s658387db0b32aeed@mail.gmail.com> <17160.1150929667@sss.pgh.pa.us> <30b57570606220116h2f216c1eue74e5cfbb41bd5bc@mail.gmail.com> <1048.1150995309@sss.pgh.pa.us> <1151003773.21238.13.camel@archimedes> <30b57570606230122s4827d2ectd470e3c4ff6ad228@mail.gmail.com> <5D40D46E-2EFE-4EC1-98B2-642C7C5E3229@fastcrypt.com> <30b57570606230523n402acc77uae9184301f44e19e@mail.gmail.com> <E3A47647-4BAC-4628-9326-DF2F8B9DDA88@fastcrypt.com> <30b57570606230547x6a35451ag7d4a9c697533d0c9@mail.gmail.com> <C56E6A5C-357F-4E96-8272-D05AAA69950E@fastcrypt.com> <847D8099-EA4C-4692-A01C-7A18B3280D68@fastcrypt.com> <1151094723.21238.82.camel@archimedes> <Pine.BSO.4.63.0606231543240.247@leary2.csoft.net> <1151096376.21238.93.camel@archimedes>

* 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