Re: binary patch problems

From: Mikko Tiihonen <mikko(dot)tiihonen(at)nitorcreations(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Re: binary patch problems
Date: 2011-09-19 13:53:38
Message-ID: 4E774962.4060904@nitorcreations.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On 09/19/2011 01:11 PM, Bodor Andras wrote:
> Why don't you set prepareThreshold to 0 for your test cases?
> In this case parameter passing starts immediately for the
> prepared statement, and ForceBinaryTransfers can be dropped.

AbstractJdbc2Statement:
public boolean isUseServerPrepare() {
return (preparedQuery != null && m_prepareThreshold != 0 && m_useCount + 1 >= m_prepareThreshold);
}

If I read the above correctly then prepareThreshold of 0 disables prepared statements.

-Mikko

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Bodor Andras 2011-09-19 14:38:47 Re: binary patch problems
Previous Message Bodor Andras 2011-09-19 10:11:41 Re: binary patch problems