Re: Inconsistent: Getting array from result set

Поиск
Список
Период
Сортировка
От Craig Ringer
Тема Re: Inconsistent: Getting array from result set
Дата
Msg-id 526DDA06.6010300@2ndquadrant.com
обсуждение исходный текст
Ответ на Inconsistent: Getting array from result set  (robrez <resendez.java@gmail.com>)
Ответы Re: Inconsistent: Getting array from result set
Список pgsql-jdbc
On 10/25/2013 07:27 AM, robrez wrote:
> 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.

By default, PgJDBC switches from client-side to server-side prepared
statements at five executions. So I'd say you're seeing an issue related
to that.

Try playing with the prepared statement threshold, see if the problem
behaviour changes along with the threshold. See the documentation for
details on that.


--
 Craig Ringer                   http://www.2ndQuadrant.com/
 PostgreSQL Development, 24x7 Support, Training & Services


В списке pgsql-jdbc по дате отправления:

Предыдущее
От: robrez
Дата:
Сообщение: Re: Inconsistent: Getting array from result set
Следующее
От: robrez
Дата:
Сообщение: Re: Inconsistent: Getting array from result set