Skip to content

Commit

Permalink
pool: fix getSession()
Browse files Browse the repository at this point in the history
  • Loading branch information
cztomsik committed Aug 19, 2024
1 parent 34f7017 commit 43e2ad2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pool.zig
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ pub const Pool = struct {

pub fn getSession(self: *Pool, allocator: std.mem.Allocator) Error!Session {
var sess = try Session.init(allocator, try self.getConnection());
sess.pool = self;
sess.owned = true;
return sess;
}

Expand Down

0 comments on commit 43e2ad2

Please sign in to comment.