Re: binary patch problems - Mailing list pgsql-jdbc

From Mikko Tiihonen
Subject Re: binary patch problems
Date
Msg-id 4E774962.4060904@nitorcreations.com
Whole thread Raw
In response to Re: binary patch problems  (Bodor Andras <bodri.mh3@gmail.com>)
Responses Re: binary patch problems  (Tom Lane <tgl@sss.pgh.pa.us>)
List 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

pgsql-jdbc by date:

Previous
From: Bodor Andras
Date:
Subject: Re: binary patch problems
Next
From: Tom Lane
Date:
Subject: Re: binary patch problems