diff options
| author | 2021-06-25 18:04:43 +0200 | |
|---|---|---|
| committer | 2021-06-25 18:04:43 +0200 | |
| commit | 921df98109a84cacdd391d5abd30fd9af43b9a17 (patch) | |
| tree | f7571002e660e0ae9b1b03337a3f7bb788212756 | |
| parent | fix 'unused function parameter' error (diff) | |
| download | zig-sqlite-921df98109a84cacdd391d5abd30fd9af43b9a17.tar.gz zig-sqlite-921df98109a84cacdd391d5abd30fd9af43b9a17.tar.xz zig-sqlite-921df98109a84cacdd391d5abd30fd9af43b9a17.zip | |
fix 'redundant comptile' error
| -rw-r--r-- | sqlite.zig | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -446,7 +446,7 @@ pub const Db = struct { | |||
| 446 | } | 446 | } |
| 447 | 447 | ||
| 448 | /// prepareWithDiags is like `prepare` but takes an additional options argument. | 448 | /// prepareWithDiags is like `prepare` but takes an additional options argument. |
| 449 | pub fn prepareWithDiags(self: *Self, comptime query: []const u8, options: QueryOptions) !comptime blk: { | 449 | pub fn prepareWithDiags(self: *Self, comptime query: []const u8, options: QueryOptions) !blk: { |
| 450 | @setEvalBranchQuota(100000); | 450 | @setEvalBranchQuota(100000); |
| 451 | break :blk Statement(.{}, ParsedQuery.from(query)); | 451 | break :blk Statement(.{}, ParsedQuery.from(query)); |
| 452 | } { | 452 | } { |
| @@ -469,7 +469,7 @@ pub const Db = struct { | |||
| 469 | /// This is done because we type check the bind parameters when executing the statement later. | 469 | /// This is done because we type check the bind parameters when executing the statement later. |
| 470 | /// | 470 | /// |
| 471 | /// If you want additional error information in case of failures, use `prepareWithDiags`. | 471 | /// If you want additional error information in case of failures, use `prepareWithDiags`. |
| 472 | pub fn prepare(self: *Self, comptime query: []const u8) !comptime blk: { | 472 | pub fn prepare(self: *Self, comptime query: []const u8) !blk: { |
| 473 | @setEvalBranchQuota(100000); | 473 | @setEvalBranchQuota(100000); |
| 474 | break :blk Statement(.{}, ParsedQuery.from(query)); | 474 | break :blk Statement(.{}, ParsedQuery.from(query)); |
| 475 | } { | 475 | } { |