pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Kris Jurka <books@ejurka.com>
To: Do, Leon (Leon) <leondo@alcatel-lucent.com>
Cc: PostgreSQL JDBC <pgsql-jdbc@postgresql.org>
Subject: Re: Max size for bytea type
Date: Thu, 1 Feb 2007 13:31:53 -0500 (EST)
Message-ID: <Pine.BSO.4.64.0702011328430.23261@leary2.csoft.net> (raw)
In-Reply-To: <D1EE06BA46B1E4449AF9A4F2FBEE18616FBFA1@ILEXC2U01.ndc.lucent.com>
References: <D1EE06BA46B1E4449AF9A4F2FBEE18616FBFA1@ILEXC2U01.ndc.lucent.com>



On Mon, 22 Jan 2007, Do, Leon (Leon) wrote:

> Sorry, it is my mistake.   It is wrong data type.
>

Still there is a TODO item here.  The driver shouldn't bail out with an 
ArrayIndexOutOfBoundsException.  It might be best to fail immediately for 
a getBytes call on something that isn't bytea data.  It's conceivable that 
you there is bytea escaped data in a text field, but really, what are the 
odds (and use cases) of that?

Kris Jurka




view thread (6+ messages)  latest in thread

Message-ID: <Pine.BSO.4.64.0702011328430.23261@leary2.csoft.net>
Permalink:  ../Pine.BSO.4.64.0702011328430.23261@leary2.csoft.net/
Also on:    postgresql.org/message-id/Pine.BSO.4.64.0702011328430.23261@leary2.csoft.net

 · 

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: books@ejurka.com, leondo@alcatel-lucent.com
  Subject: Re: Max size for bytea type
  In-Reply-To: <Pine.BSO.4.64.0702011328430.23261@leary2.csoft.net>
  References: <D1EE06BA46B1E4449AF9A4F2FBEE18616FBFA1@ILEXC2U01.ndc.lucent.com> <Pine.BSO.4.64.0702011328430.23261@leary2.csoft.net>

* 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