pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Michael Guyver <kenevel@googlemail.com>
To: pg@fastcrypt.com
To: pgsql-jdbc@postgresql.org
Subject: Re: Binary tx format for an array?
Date: Fri, 23 Jun 2006 13:47:11 +0100
Message-ID: <30b57570606230547x6a35451ag7d4a9c697533d0c9@mail.gmail.com> (raw)
In-Reply-To: <E3A47647-4BAC-4628-9326-DF2F8B9DDA88@fastcrypt.com>
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>

> > :) good question, I'm sure I'll stare it in the face soon enough. At
> > the moment I'm labouring under the impression that individual
> > parameters can be specified as binary or text.
>
> Unfortunately this is not possible. :( And one of the reasons that
> I've not spent a lot of time on this.

Hi Dave,

the page Message Formats
(http://www.postgresql.org/docs/8.1/static/protocol-message-formats.html)
specifies that the bind message should send the following for each
parameter:

    Int16 - The number of parameter format codes that follow (denoted
C below). This can be zero to indicate that there are no parameters or
that the parameters all use the default format (text); or one, in
which case the specified format code is applied to all parameters; or
it can equal the actual number of parameters.

    Int16[C] - The parameter format codes. Each must presently be zero
(text) or one (binary).

Does your understanding of the spec mean that the Int16[C] must either
be an array containg all zero's, or all ones? It reads as though these
can be mixed.



view thread (18+ messages)  latest in thread

Message-ID: <30b57570606230547x6a35451ag7d4a9c697533d0c9@mail.gmail.com>
Permalink:  ../30b57570606230547x6a35451ag7d4a9c697533d0c9@mail.gmail.com/
Also on:    postgresql.org/message-id/30b57570606230547x6a35451ag7d4a9c697533d0c9@mail.gmail.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: kenevel@googlemail.com, pg@fastcrypt.com
  Subject: Re: Binary tx format for an array?
  In-Reply-To: <30b57570606230547x6a35451ag7d4a9c697533d0c9@mail.gmail.com>
  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>

* 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