authorgravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-10-21 20:32:50 -07:00
committergravatar for hello@nektro.netMeghan Denny <hello@nektro.net> 2021-10-21 20:32:50 -07:00
log59c93af1e08e3b0843335710a2348b990a762b44
treeb420d890a6cf9713473aed00d59f12ca3094060d
parent47c7f105c1752823b3d62d78283c713d729cacba

sqlite3- pass allocator to execAlloc


1 files changed, 1 insertions(+), 1 deletions(-)

src/sqlite3.zig+1-1
......@@ -46,7 +46,7 @@ pub fn collect(self: *Self, alloc: *std.mem.Allocator, comptime T: type, comptim
4646pub fn exec(self: *Self, alloc: *std.mem.Allocator, comptime query: string, args: anytype) !void {
4747 var stmt = try self.prepare(query);
4848 defer stmt.deinit();
49 try stmt.execAlloc(.{ .allocator = alloc }, args);
49 try stmt.execAlloc(alloc, .{}, args);
5050}
5151
5252pub fn first(self: *Self, alloc: *std.mem.Allocator, comptime T: type, comptime query: string, args: anytype) !?T {