Index: org/postgresql/jdbc2/AbstractJdbc2Statement.java =================================================================== RCS file: /cvsroot/jdbc/pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Statement.java,v retrieving revision 1.126 diff -u -r1.126 AbstractJdbc2Statement.java --- org/postgresql/jdbc2/AbstractJdbc2Statement.java 26 Sep 2011 12:52:30 -0000 1.126 +++ org/postgresql/jdbc2/AbstractJdbc2Statement.java 28 Sep 2011 17:41:50 -0000 @@ -2588,6 +2588,9 @@ public void setPrepareThreshold(int newThreshold) throws SQLException { checkClosed(); + + if (ForceBinaryTransfers) + newThreshold = 1; if (newThreshold < 0) newThreshold = 0;