diff options
| author | 2025-08-20 01:16:42 +0200 | |
|---|---|---|
| committer | 2025-08-20 01:16:42 +0200 | |
| commit | 812e0b51a11812c8ed712462e13c3743fb85f7e9 (patch) | |
| tree | 48314aee4bb0f5bbcac5191a5b39707037d5c047 /vtab.zig | |
| parent | Merge pull request #193 from mattnite/arraylist (diff) | |
| download | zig-sqlite-812e0b51a11812c8ed712462e13c3743fb85f7e9.tar.gz zig-sqlite-812e0b51a11812c8ed712462e13c3743fb85f7e9.tar.xz zig-sqlite-812e0b51a11812c8ed712462e13c3743fb85f7e9.zip | |
all: fix for latest zig
Diffstat (limited to '')
| -rw-r--r-- | vtab.zig | 6 |
1 files changed, 3 insertions, 3 deletions
| @@ -210,7 +210,7 @@ pub const BestIndexBuilder = struct { | |||
| 210 | const res = Self{ | 210 | const res = Self{ |
| 211 | .allocator = allocator, | 211 | .allocator = allocator, |
| 212 | .index_info = index_info, | 212 | .index_info = index_info, |
| 213 | .id_str_buffer = std.ArrayList(u8).init(allocator), | 213 | .id_str_buffer = .empty, |
| 214 | .constraints = try allocator.alloc(Constraint, @intCast(index_info.nConstraint)), | 214 | .constraints = try allocator.alloc(Constraint, @intCast(index_info.nConstraint)), |
| 215 | .columns_used = @intCast(index_info.colUsed), | 215 | .columns_used = @intCast(index_info.colUsed), |
| 216 | .id = .{}, | 216 | .id = .{}, |
| @@ -1070,7 +1070,7 @@ const TestVirtualTable = struct { | |||
| 1070 | _ = self; | 1070 | _ = self; |
| 1071 | _ = diags; | 1071 | _ = diags; |
| 1072 | 1072 | ||
| 1073 | var id_str_writer = builder.id_str_buffer.writer(); | 1073 | var id_str_writer = builder.id_str_buffer.writer(builder.allocator); |
| 1074 | 1074 | ||
| 1075 | var argv_index: i32 = 0; | 1075 | var argv_index: i32 = 0; |
| 1076 | for (builder.constraints) |*constraint| { | 1076 | for (builder.constraints) |*constraint| { |
| @@ -1084,7 +1084,7 @@ const TestVirtualTable = struct { | |||
| 1084 | 1084 | ||
| 1085 | // | 1085 | // |
| 1086 | 1086 | ||
| 1087 | builder.id.str = try builder.id_str_buffer.toOwnedSlice(); | 1087 | builder.id.str = try builder.id_str_buffer.toOwnedSlice(builder.allocator); |
| 1088 | builder.estimated_cost = 200; | 1088 | builder.estimated_cost = 200; |
| 1089 | builder.estimated_rows = 200; | 1089 | builder.estimated_rows = 200; |
| 1090 | 1090 | ||