[pgjdbc/pgjdbc] b37115: Prevent use of extended query protocol for BEGIN b...

From: Craig Ringer <noreply(at)github(dot)com>
To: pgsql-jdbc(at)lists(dot)postgresql(dot)org
Subject: [pgjdbc/pgjdbc] b37115: Prevent use of extended query protocol for BEGIN b...
Date: 2019-12-06 13:21:35
Message-ID: pgjdbc/pgjdbc/push/refs/heads/master/ad83cb-b37115@github.com
Views: Whole Thread | Raw Message | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

Branch: refs/heads/master
Home: https://github.com/pgjdbc/pgjdbc
Commit: b37115373935732b1ab5e59b56837ac49942718a
https://github.com/pgjdbc/pgjdbc/commit/b37115373935732b1ab5e59b56837ac49942718a
Author: Craig Ringer <craig(at)2ndquadrant(dot)com>
Date: 2019-12-06 (Fri, 06 Dec 2019)

Changed paths:
M pgjdbc/src/main/java/org/postgresql/core/v3/QueryExecutorImpl.java

Log Message:
-----------
Prevent use of extended query protocol for BEGIN before COPY (#1639)

When autocommit is off and the first query in a transaction is a COPY, we were
sending a BEGIN using the extended query protocol. It was being permitted to
use named portals as well, ignoring prepareThreshold.

Fix by forcing simple query mode and marking the BEGIN as oneshot.

Fixes #1638

Browse pgsql-jdbc by date

  From Date Subject
Next Message Dave Cramer 2019-12-06 19:18:53 [pgjdbc/pgjdbc] fa69e7: new pr for release notes (#1640)
Previous Message Mahmoud Bahaa 2019-12-06 12:50:57 [pgjdbc/pgjdbc] ad83cb: Only allow binary transfer for those Oids that the...