Received: from localhost (unknown [200.46.204.182]) by postgresql.org (Postfix) with ESMTP id 6380D9FA1C1 for ; Tue, 18 Sep 2007 08:04:54 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.182]) (amavisd-maia, port 10024) with ESMTP id 23379-05-2 for ; Tue, 18 Sep 2007 08:04:47 -0300 (ADT) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.5 Received: from ciao.gmane.org (main.gmane.org [80.91.229.2]) by postgresql.org (Postfix) with ESMTP id 33F179F995E for ; Tue, 18 Sep 2007 08:04:51 -0300 (ADT) Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IXask-00062S-PR for pgsql-jdbc@postgresql.org; Tue, 18 Sep 2007 13:04:43 +0200 Received: from cd4400510.cable.wanadoo.nl ([212.64.5.16]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Sep 2007 13:04:42 +0200 Received: from sbailliez by cd4400510.cable.wanadoo.nl with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 18 Sep 2007 13:04:42 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Stephane Bailliez Subject: Re: Exception while doing ResultSetMetadata.getColumnName() after select setval() Date: Tue, 18 Sep 2007 13:03:08 +0200 Lines: 16 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: cd4400510.cable.wanadoo.nl User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) In-Reply-To: X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200709/90 X-Sequence-Number: 17512 Kris Jurka wrote: > > In JDBC columns go from 1 -> count, not 0 -> count-1. ah.. one more reason to get rid of this script I suppose. Thanks for the heads up. for the records, the previous workaround was of course not working..(I put that on the lack of sleep) it needed to be wrapped into insert in a temp table to avoid the result set issue. cheers, -- stephane