From cecdc84e48bfa77b12667c1d772f9b26cd183164 Mon Sep 17 00:00:00 2001 From: Meghan Date: Sun, 9 Jul 2023 13:39:52 -0700 Subject: DynamicStatement.all: use iteratorAlloc Statement.all already does--- sqlite.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sqlite.zig') diff --git a/sqlite.zig b/sqlite.zig index fe53b1f..7f98c08 100644 --- a/sqlite.zig +++ b/sqlite.zig @@ -1924,7 +1924,7 @@ pub const DynamicStatement = struct { /// /// Note that this allocates all rows into a single slice: if you read a lot of data this can use a lot of memory. pub fn all(self: *Self, comptime Type: type, allocator: mem.Allocator, options: QueryOptions, values: anytype) ![]Type { - var iter = try self.iterator(Type, values); + var iter = try self.iteratorAlloc(Type, allocator, values); var rows = std.ArrayList(Type).init(allocator); while (try iter.nextAlloc(allocator, options)) |row| { -- cgit v1.2.3