Message-ID: From: "CTH57 (@CTH57)" To: "pgjdbc/pgjdbc" Date: Mon, 05 Jan 2026 15:51:23 +0000 Subject: Re: [pgjdbc/pgjdbc] PR #3897: fix: issue #3892, PGXAConnection.prepare(Xid) should return XA_RDONLY if the connection is read only In-Reply-To: References: List-Id: X-GitHub-Author-Login: CTH57 X-GitHub-Comment-Id: 3710993490 X-GitHub-Comment-Type: issue_comment X-GitHub-Issue: 3897 X-GitHub-Repo: pgjdbc/pgjdbc X-GitHub-Type: comment X-GitHub-Url: https://github.com/pgjdbc/pgjdbc/pull/3897#issuecomment-3710993490 Content-Type: text/plain; charset=utf-8 Are you sure of your correction ? If the connection is read only, the attempt to execute the prepare transaction will throw an exception. The test conn.isReadOnly should be before.