Skip to content

Commit

Permalink
Problem: unclear what a null argument to BeginInternalSubTransaction …
Browse files Browse the repository at this point in the history
…is for

Solution: comment it
  • Loading branch information
yrashk committed Dec 13, 2022
1 parent 351d157 commit b38d9d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pgx/src/subxact.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ impl<Parent: SubTransactionExt, const COMMIT: bool> SubTransaction<Parent, COMMI
// Remember resource owner before starting the sub-transaction
let resource_owner = unsafe { pg_sys::CurrentResourceOwner };
unsafe {
pg_sys::BeginInternalSubTransaction(std::ptr::null());
pg_sys::BeginInternalSubTransaction(std::ptr::null() /* [no] transaction name */);
}
// Switch to the outer memory context so that all allocations remain
// there instead of the sub-transaction's context
Expand Down

0 comments on commit b38d9d7

Please sign in to comment.