From 59c93af1e08e3b0843335710a2348b990a762b44 Mon Sep 17 00:00:00 2001 From: Meghan Denny Date: Thu, 21 Oct 2021 20:32:50 -0700 Subject: [PATCH] sqlite3- pass allocator to execAlloc --- src/sqlite3.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sqlite3.zig b/src/sqlite3.zig index 2f04155e1825a3f96a3a7fccb650f66105c3edb2..79f76d669ddad5aaef994e957918a6c7c28f0306 100644 --- a/src/sqlite3.zig +++ b/src/sqlite3.zig @@ -46,7 +46,7 @@ pub fn collect(self: *Self, alloc: *std.mem.Allocator, comptime T: type, comptim pub fn exec(self: *Self, alloc: *std.mem.Allocator, comptime query: string, args: anytype) !void { var stmt = try self.prepare(query); defer stmt.deinit(); - try stmt.execAlloc(.{ .allocator = alloc }, args); + try stmt.execAlloc(alloc, .{}, args); } pub fn first(self: *Self, alloc: *std.mem.Allocator, comptime T: type, comptime query: string, args: anytype) !?T { -- 2.54.0