ndex: pgjdbc/src/main/java/org/postgresql/jdbc/PgStatement.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/pgjdbc/src/main/java/org/postgresql/jdbc/PgStatement.java b/pgjdbc/src/main/java/org/postgresql/jdbc/PgStatement.java --- a/pgjdbc/src/main/java/org/postgresql/jdbc/PgStatement.java (revision ffda18bf5f01ae0b3d6b987d2a63260372ea60f6) +++ b/pgjdbc/src/main/java/org/postgresql/jdbc/PgStatement.java (date 1650543581013) @@ -395,7 +395,7 @@ } cachedQuery.increaseExecuteCount(); if ((mPrepareThreshold == 0 || cachedQuery.getExecuteCount() < mPrepareThreshold) - && !getForceBinaryTransfer()) { + /*&& !getForceBinaryTransfer()*/) { return true; } return false; Index: pgjdbc/src/main/java/org/postgresql/core/v3/QueryExecutorImpl.java IDEA additional info: Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP <+>UTF-8 =================================================================== diff --git a/pgjdbc/src/main/java/org/postgresql/core/v3/QueryExecutorImpl.java b/pgjdbc/src/main/java/org/postgresql/core/v3/QueryExecutorImpl.java --- a/pgjdbc/src/main/java/org/postgresql/core/v3/QueryExecutorImpl.java (revision ffda18bf5f01ae0b3d6b987d2a63260372ea60f6) +++ b/pgjdbc/src/main/java/org/postgresql/core/v3/QueryExecutorImpl.java (date 1650563439028) @@ -1538,17 +1538,17 @@ return; } - // Clean up any existing statement, as we can't use it. - query.unprepare(); - processDeadParsedQueries(); + String statementName = null; + if (!oneShot) { + // Clean up any existing statement, as we can't use it. + query.unprepare(); + processDeadParsedQueries(); - // Remove any cached Field values. The re-parsed query might report different - // fields because input parameter types may result in different type inferences - // for unspecified types. - query.setFields(null); + // Remove any cached Field values. The re-parsed query might report different + // fields because input parameter types may result in different type inferences + // for unspecified types. + query.setFields(null); - String statementName = null; - if (!oneShot) { // Generate a statement name to use. statementName = "S_" + (nextUniqueID++);