diff options
| author | 2025-11-03 20:02:21 +0100 | |
|---|---|---|
| committer | 2025-11-03 20:02:21 +0100 | |
| commit | a70c36b82573415c8d8da16c7ef5e23e02199a48 (patch) | |
| tree | a66197c06d3c6be14b3fb36abef63499a581b16a /sqlite.zig | |
| parent | fix: linking should be static, not dynamic (diff) | |
| parent | update dynamic statement all to call arraylist.toOwnedSlice correctly (diff) | |
| download | zig-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.zig | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -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 | ||