Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VZUJG-0001ZX-99 for pgsql-jdbc@arkaria.postgresql.org; Thu, 24 Oct 2013 23:27:22 +0000 Received: from localhost ([127.0.0.1] helo=postgresql.org) by malur.postgresql.org with smtp (Exim 4.80) (envelope-from ) id 1VZUJF-0001jx-7M for pgsql-jdbc@arkaria.postgresql.org; Thu, 24 Oct 2013 23:27:21 +0000 Received: from makus.postgresql.org ([2001:4800:7903:4::125]) by malur.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VZUJE-0001jq-8l for pgsql-jdbc@postgresql.org; Thu, 24 Oct 2013 23:27:20 +0000 Received: from sam.nabble.com ([216.139.236.26]) by makus.postgresql.org with esmtp (Exim 4.80) (envelope-from ) id 1VZUJB-00044G-Aj for pgsql-jdbc@postgresql.org; Thu, 24 Oct 2013 23:27:19 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1VZUJA-0006km-Ne for pgsql-jdbc@postgresql.org; Thu, 24 Oct 2013 16:27:16 -0700 Date: Thu, 24 Oct 2013 16:27:16 -0700 (PDT) From: robrez To: pgsql-jdbc@postgresql.org Message-ID: <1382657236721-5775841.post@n5.nabble.com> Subject: Inconsistent: Getting array from result set MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Pg-Spam-Score: 2.7 (++) List-Archive: List-Help: List-ID: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: X-Mailing-List: pgsql-jdbc Precedence: bulk Sender: pgsql-jdbc-owner@postgresql.org I am encountering inconsistent behavior when getting an array from a result set that was produced via a prepared statement. It seems that the first 5 times the result set is generated from a given statement, everything is good. Attempts 6-n do something strange. It's tough to explain so here is a test I ran... Here is the output... Is the the result of some sort of lazy-loading mechanism in the sql.Array? I'm aware of any number of ways to work-around this 'issue'... but the inconsistency strikes me as odd. I'm running postgres 9-2. I could duplicate this issue using the following jars: *9.2-1003-jdbc3 9.2-1003-jdbc4 9.2-1002-jdbc4* I had an OLD jar hanging around that worked as I would have expected... I could not duplicate the issue using* 8.3-604-jdbc3* JRE is 7 Thanks for any input -- View this message in context: http://postgresql.1045698.n5.nabble.com/Inconsistent-Getting-array-from-result-set-tp5775841.html Sent from the PostgreSQL - jdbc mailing list archive at Nabble.com. -- Sent via pgsql-jdbc mailing list (pgsql-jdbc@postgresql.org) To make changes to your subscription: http://www.postgresql.org/mailpref/pgsql-jdbc