Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent use of extended query protocol for BEGIN before COPY #1639

Merged
merged 1 commit into from Dec 6, 2019

Commits on Dec 6, 2019

  1. Prevent use of extended query protocol for BEGIN before COPY

    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 pgjdbc#1638
    ringerc committed Dec 6, 2019
    Copy the full SHA
    3876ae3 View commit details
    Browse the repository at this point in the history