From: robrez <resendez.java@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Inconsistent: Getting array from result set
Date: Mon, 28 Oct 2013 06:35:38 -0700 (PDT)
Message-ID: <1382967338248-5776079.post@n5.nabble.com> (raw)
In-Reply-To: <526DDA06.6010300@2ndquadrant.com>
References: <1382657236721-5775841.post@n5.nabble.com>
<526DDA06.6010300@2ndquadrant.com>
List-Unsubscribe: <mailto:majordomo@postgresql.org?body=unsub%20pgsql-jdbc>
Craig's inference that the difference in behavior after 5 usages was related
to the statement threshold seems to be correct.
String SELECT = "SELECT at_id, at_array, at_array::character varying
as at_array_str FROM array_test WHERE at_id = ?";
PreparedStatement selectStmt =
db.getConnection().prepareStatement(SELECT);
PGStatement pgStmt = (PGStatement) selectStmt;
pgStmt.setPrepareThreshold(50);
Setting the threshold to 50 made the sql.Array.toString() method return the
expected value (not null) 50 times instead of 5.
--
View this message in context: http://postgresql.1045698.n5.nabble.com/Inconsistent-Getting-array-from-result-set-tp5775841p5776079...
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
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: resendez.java@gmail.com
Subject: Re: Inconsistent: Getting array from result set
In-Reply-To: <1382967338248-5776079.post@n5.nabble.com>
References: <1382657236721-5775841.post@n5.nabble.com> <526DDA06.6010300@2ndquadrant.com> <1382967338248-5776079.post@n5.nabble.com>
* 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