Received: from localhost (maia-5.hub.org [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 2DEE19FB20F for ; Thu, 1 Feb 2007 14:32:00 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-new, port 10024) with ESMTP id 99850-01 for ; Thu, 1 Feb 2007 14:31:52 -0400 (AST) X-Greylist: from auto-whitelisted by SQLgrey-1.7.4 Received: from mail63.csoft.net (mail63.csoft.net [205.205.214.4]) by postgresql.org (Postfix) with ESMTP id E2E629FB20C for ; Thu, 1 Feb 2007 14:31:53 -0400 (AST) Received: by mail63.csoft.net (Postfix, from userid 1112) id 683BCF4B8; Thu, 1 Feb 2007 13:31:53 -0500 (EST) Date: Thu, 1 Feb 2007 13:31:53 -0500 (EST) From: Kris Jurka X-X-Sender: books@leary2.csoft.net To: "Do, Leon (Leon)" cc: PostgreSQL JDBC Subject: Re: Max size for bytea type In-Reply-To: Message-ID: References: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200702/10 X-Sequence-Number: 16566 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