From 15a165678e0882608c777664f0d53e359e114a09 Mon Sep 17 00:00:00 2001 From: Patrick Date: Sat, 18 Oct 2025 12:07:46 -0400 Subject: [PATCH 1/2] update dynamic statement all to call arraylist.append correctly --- sqlite.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlite.zig b/sqlite.zig index 8a000aa..8812b74 100644 --- a/sqlite.zig +++ b/sqlite.zig @@ -1969,7 +1969,7 @@ pub const DynamicStatement = struct { var rows: std.ArrayList(Type) = .{}; while (try iter.nextAlloc(allocator, options)) |row| { - try rows.append(row); + try rows.append(allocator, row); } return rows.toOwnedSlice(); From d3cdfac1eebaee707a0bd08f0db8e7d1d3674ea5 Mon Sep 17 00:00:00 2001 From: Patrick Date: Sat, 18 Oct 2025 12:13:32 -0400 Subject: [PATCH 2/2] update dynamic statement all to call arraylist.toOwnedSlice correctly --- sqlite.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sqlite.zig b/sqlite.zig index 8812b74..dcf05a1 100644 --- a/sqlite.zig +++ b/sqlite.zig @@ -1972,7 +1972,7 @@ pub const DynamicStatement = struct { try rows.append(allocator, row); } - return rows.toOwnedSlice(); + return rows.toOwnedSlice(allocator); } };