Skip to content

Commit a70c36b

Browse files
authored
Merge pull request #196 from PFWhite/master
Update dynamic statement all to use 0.15.1 arraylist correctly
2 parents 6d90ee9 + d3cdfac commit a70c36b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

sqlite.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1969,10 +1969,10 @@ pub const DynamicStatement = struct {
19691969

19701970
var rows: std.ArrayList(Type) = .{};
19711971
while (try iter.nextAlloc(allocator, options)) |row| {
1972-
try rows.append(row);
1972+
try rows.append(allocator, row);
19731973
}
19741974

1975-
return rows.toOwnedSlice();
1975+
return rows.toOwnedSlice(allocator);
19761976
}
19771977
};
19781978

0 commit comments

Comments
 (0)