Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information