From 812e0b51a11812c8ed712462e13c3743fb85f7e9 Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Wed, 20 Aug 2025 01:16:42 +0200 Subject: all: fix for latest zig --- vtab.zig | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'vtab.zig') diff --git a/vtab.zig b/vtab.zig index 539fcc4..19826d0 100644 --- a/vtab.zig +++ b/vtab.zig @@ -210,7 +210,7 @@ pub const BestIndexBuilder = struct { const res = Self{ .allocator = allocator, .index_info = index_info, - .id_str_buffer = std.ArrayList(u8).init(allocator), + .id_str_buffer = .empty, .constraints = try allocator.alloc(Constraint, @intCast(index_info.nConstraint)), .columns_used = @intCast(index_info.colUsed), .id = .{}, @@ -1070,7 +1070,7 @@ const TestVirtualTable = struct { _ = self; _ = diags; - var id_str_writer = builder.id_str_buffer.writer(); + var id_str_writer = builder.id_str_buffer.writer(builder.allocator); var argv_index: i32 = 0; for (builder.constraints) |*constraint| { @@ -1084,7 +1084,7 @@ const TestVirtualTable = struct { // - builder.id.str = try builder.id_str_buffer.toOwnedSlice(); + builder.id.str = try builder.id_str_buffer.toOwnedSlice(builder.allocator); builder.estimated_cost = 200; builder.estimated_rows = 200; -- cgit v1.2.3