X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id BB3A15E40AC for ; Sat, 21 Aug 2004 21:33:56 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 75855-09 for ; Sun, 22 Aug 2004 00:33:52 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id D48DD5E3F15 for ; Sat, 21 Aug 2004 21:33:48 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=opencloud.com) by yass.opencloud.co.nz with asmtp (Exim 3.35 #1 (Debian)) id 1BygIe-0007r5-00; Sun, 22 Aug 2004 12:33:32 +1200 Message-ID: <4127E9D8.3090100@opencloud.com> Date: Sun, 22 Aug 2004 12:33:28 +1200 From: Oliver Jowett User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6b) Gecko/20031205 Thunderbird/0.4 X-Accept-Language: en-us, en MIME-Version: 1.0 To: pg@fastcrypt.com Cc: andreas.percher@automedia.de, "pgsql-jdbc@postgresql.org" Subject: Re: Columns out of range-error References: <000101c486c7$410b4cd0$1600a8c0@developer> <4126B0EE.2070900@opencloud.com> <1093104187.20387.84.camel@localhost.localdomain> In-Reply-To: <1093104187.20387.84.camel@localhost.localdomain> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/127 X-Sequence-Number: 10849 Dave Cramer wrote: > Oliver, > > This should throw an error if you try to setXXX(n,obj) if n is greater > than the number of parameters you have? On a PreparedStatement? That throws postgresql.prep.range not postgresql.res.colrange. The ResultSet.updateXXX() methods would be the other place I would expect an exception to be thrown from, but I looked at them just now and they seem to do no range checking at all -- you'll just get an ArrayIndexOutOfBoundsException! -O