| ... | @@ -29,7 +29,7 @@ pub fn collect(self: *Self, alloc: *std.mem.Allocator, comptime T: type, comptim | ... | @@ -29,7 +29,7 @@ pub fn collect(self: *Self, alloc: *std.mem.Allocator, comptime T: type, comptim |
| 29 | defer stmt.deinit(); | 29 | defer stmt.deinit(); |
| 30 | var iter = try stmt.iterator(T, .{}); | 30 | var iter = try stmt.iterator(T, .{}); |
| 31 | var list = std.ArrayList(T).init(alloc); | 31 | var list = std.ArrayList(T).init(alloc); |
| 32 | while (try iter.next(.{ .allocator = alloc })) |row| { | 32 | while (try iter.nextAlloc(alloc, .{})) |row| { |
| 33 | try list.append(row); | 33 | try list.append(row); |
| 34 | } | 34 | } |
| 35 | return list.toOwnedSlice(); | 35 | return list.toOwnedSlice(); |