Message-ID: From: "davecramer (@davecramer)" To: "pgjdbc/pgjdbc" Date: Mon, 12 Jan 2026 12:34:41 +0000 Subject: Re: [pgjdbc/pgjdbc] PR #1639: Prevent use of extended query protocol for BEGIN before COPY In-Reply-To: References: List-Id: X-GitHub-Author-Login: davecramer X-GitHub-Comment-Id: 3738344330 X-GitHub-Comment-Type: issue_comment X-GitHub-Issue: 1639 X-GitHub-Repo: pgjdbc/pgjdbc X-GitHub-Type: comment X-GitHub-Url: https://github.com/pgjdbc/pgjdbc/pull/1639#issuecomment-3738344330 Content-Type: text/plain; charset=utf-8 @jarvis24young I'm not sure what code you are referring to in the image, but here is the current code https://github.com/pgjdbc/pgjdbc/blob/c07721af972eee4f10873b1a23b3811336454436/pgjdbc/src/main/java/org/postgresql/core/v3/QueryExecutorImpl.java#L374-L381 While updateQueryMode is probably not the best name for this function it does actually return a modified queryMode. If the preferredQueryMode is simple, it will return `flags | QUERY_EXECUTE_AS_SIMPLE`