summaryrefslogtreecommitdiff
path: root/sqlite.zig
diff options
context:
space:
mode:
authorGravatar Vincent Rischmann2025-11-03 20:02:21 +0100
committerGravatar GitHub2025-11-03 20:02:21 +0100
commita70c36b82573415c8d8da16c7ef5e23e02199a48 (patch)
treea66197c06d3c6be14b3fb36abef63499a581b16a /sqlite.zig
parentfix: linking should be static, not dynamic (diff)
parentupdate dynamic statement all to call arraylist.toOwnedSlice correctly (diff)
downloadzig-sqlite-a70c36b82573415c8d8da16c7ef5e23e02199a48.tar.gz
zig-sqlite-a70c36b82573415c8d8da16c7ef5e23e02199a48.tar.xz
zig-sqlite-a70c36b82573415c8d8da16c7ef5e23e02199a48.zip
Merge pull request #196 from PFWhite/master
Update dynamic statement all to use 0.15.1 arraylist correctly
Diffstat (limited to 'sqlite.zig')
-rw-r--r--sqlite.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/sqlite.zig b/sqlite.zig
index 8a000aa..dcf05a1 100644
--- a/sqlite.zig
+++ b/sqlite.zig
@@ -1969,10 +1969,10 @@ pub const DynamicStatement = struct {
1969 1969
1970 var rows: std.ArrayList(Type) = .{}; 1970 var rows: std.ArrayList(Type) = .{};
1971 while (try iter.nextAlloc(allocator, options)) |row| { 1971 while (try iter.nextAlloc(allocator, options)) |row| {
1972 try rows.append(row); 1972 try rows.append(allocator, row);
1973 } 1973 }
1974 1974
1975 return rows.toOwnedSlice(); 1975 return rows.toOwnedSlice(allocator);
1976 } 1976 }
1977}; 1977};
1978 1978