From c087762586a5601473ac181cbb4c7a462ec090b8 Mon Sep 17 00:00:00 2001 From: Vincent Rischmann Date: Mon, 22 Nov 2021 22:46:38 +0100 Subject: dynamic statement: fix one() --- sqlite.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sqlite.zig') diff --git a/sqlite.zig b/sqlite.zig index 2bc8a67..703294f 100644 --- a/sqlite.zig +++ b/sqlite.zig @@ -1499,7 +1499,7 @@ pub const DynamicStatement = struct { /// /// This cannot allocate memory. If you need to read TEXT or BLOB columns you need to use arrays or alternatively call `oneAlloc`. pub fn one(self: *Self, comptime Type: type, options: QueryOptions, values: anytype) !?Type { - var iter = try self.iterator(Type, .{}, values); + var iter = try self.iterator(Type, values); const row = (try iter.next(options)) orelse return null; return row; -- cgit v1.2.3