Please sign in to comment.
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
Showing with 6 additions and 2 deletions.