Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
wip
  • Loading branch information
niclaflamme committed Aug 8, 2025
commit 33f1ec5b3cd002cfd7396d7f5af69675475f61cd
4 changes: 4 additions & 0 deletions pgdog/src/frontend/client/engine/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,4 +30,8 @@ impl<'a> EngineContext<'a> {
buffer: &client.request_buffer,
}
}

pub fn in_transaction(&self) -> bool {
self.logical_transaction.in_transaction()
}
}
6 changes: 2 additions & 4 deletions pgdog/src/frontend/client/engine/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -54,10 +54,8 @@ impl<'a> Engine<'a> {
'S' => {
if only_close || only_sync && !self.context.connected {
messages.push(
ReadyForQuery::in_transaction(
self.context.logical_transaction.in_transaction(),
)
.message()?,
ReadyForQuery::in_transaction(self.context.in_transaction())
.message()?,
)
}
}
Expand Down
Loading