pgjdbc/pgjdbc GitHub issues and pull requests (mirror)
help / color / mirror / Atom feed[pgjdbc/pgjdbc] PR #3655: fix: ensure Connection.isValid() returns true even if prepared statements deallocate
3+ messages / 2 participants
[nested] [flat]
* [pgjdbc/pgjdbc] PR #3655: fix: ensure Connection.isValid() returns true even if prepared statements deallocate
@ 2025-06-06 11:28 "vlsi (@vlsi)" <[email protected]>
0 siblings, 0 replies; 3+ messages in thread
From: vlsi (@vlsi) @ 2025-06-06 11:28 UTC (permalink / raw)
To: pgjdbc/pgjdbc <[email protected]>
Previously, the code for `.isValid()` was using `executeWithFlags("", QueryExecutor.QUERY_EXECUTE_AS_SIMPLE)`
However, the execution still went with extended query protocol since `QueryExecutorImpl#updateQueryMode` trimmed the flag in `preferQueryMode=extended` (default) mode.
It does not feel right to trim the flag there since the intention of the option was to "prefer" query mode unless specified explicitly.
The case is identified and tested in `AutoRollbackTest`: isValid should return true after statements like DEALLOCATE, `DISCARD`, and so on.
See https://github.com/pgjdbc/pgjdbc/pull/3631
Fixes https://github.com/pgjdbc/pgjdbc/issues/3630
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: [pgjdbc/pgjdbc] PR #3655: fix: ensure Connection.isValid() returns true even if prepared statements deallocate
@ 2025-06-06 11:51 "davecramer (@davecramer)" <[email protected]>
1 sibling, 0 replies; 3+ messages in thread
From: davecramer (@davecramer) @ 2025-06-06 11:51 UTC (permalink / raw)
To: pgjdbc/pgjdbc <[email protected]>
(on pgjdbc/src/main/java/org/postgresql/core/v3/QueryExecutorImpl.java:321)
hmmm, how long has that been there ?
^ permalink raw reply [nested|flat] 3+ messages in thread
* Re: [pgjdbc/pgjdbc] PR #3655: fix: ensure Connection.isValid() returns true even if prepared statements deallocate
@ 2025-06-06 12:00 "vlsi (@vlsi)" <[email protected]>
1 sibling, 0 replies; 3+ messages in thread
From: vlsi (@vlsi) @ 2025-06-06 12:00 UTC (permalink / raw)
To: pgjdbc/pgjdbc <[email protected]>
(on pgjdbc/src/main/java/org/postgresql/core/v3/QueryExecutorImpl.java:321)
It has been sitting there for almost 9 years since 232569c6bd9eb625fc70ebe642d35c8256726a16
^ permalink raw reply [nested|flat] 3+ messages in thread
end of thread, other threads:[~2025-06-06 12:00 UTC | newest]
Thread overview: 3+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2025-06-06 11:28 [pgjdbc/pgjdbc] PR #3655: fix: ensure Connection.isValid() returns true even if prepared statements deallocate "vlsi (@vlsi)" <[email protected]>
2025-06-06 11:51 ` "davecramer (@davecramer)" <[email protected]>
2025-06-06 12:00 ` "vlsi (@vlsi)" <[email protected]>
This inbox is served by agora; see mirroring instructions
for how to clone and mirror all data and code used for this inbox