From 921df98109a84cacdd391d5abd30fd9af43b9a17 Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Fri, 25 Jun 2021 18:04:43 +0200 Subject: fix 'redundant comptile' error --- sqlite.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sqlite.zig') diff --git a/sqlite.zig b/sqlite.zig index 975c6ef..3f43134 100644 --- a/sqlite.zig +++ b/sqlite.zig @@ -446,7 +446,7 @@ pub const Db = struct { } /// prepareWithDiags is like `prepare` but takes an additional options argument. - pub fn prepareWithDiags(self: *Self, comptime query: []const u8, options: QueryOptions) !comptime blk: { + pub fn prepareWithDiags(self: *Self, comptime query: []const u8, options: QueryOptions) !blk: { @setEvalBranchQuota(100000); break :blk Statement(.{}, ParsedQuery.from(query)); } { @@ -469,7 +469,7 @@ pub const Db = struct { /// This is done because we type check the bind parameters when executing the statement later. /// /// If you want additional error information in case of failures, use `prepareWithDiags`. - pub fn prepare(self: *Self, comptime query: []const u8) !comptime blk: { + pub fn prepare(self: *Self, comptime query: []const u8) !blk: { @setEvalBranchQuota(100000); break :blk Statement(.{}, ParsedQuery.from(query)); } { -- cgit v1.2.3