summaryrefslogtreecommitdiff
path: root/sqlite.zig
diff options
context:
space:
mode:
authorGravatar Vincent Rischmann2021-11-22 22:46:38 +0100
committerGravatar Vincent Rischmann2021-11-22 23:34:41 +0100
commitc087762586a5601473ac181cbb4c7a462ec090b8 (patch)
treea83dd20ecc14c0e9cac48b249897c413b5606686 /sqlite.zig
parentremove smartBind/bindNamedStruct, they're not actually necessary (diff)
downloadzig-sqlite-c087762586a5601473ac181cbb4c7a462ec090b8.tar.gz
zig-sqlite-c087762586a5601473ac181cbb4c7a462ec090b8.tar.xz
zig-sqlite-c087762586a5601473ac181cbb4c7a462ec090b8.zip
dynamic statement: fix one()
Diffstat (limited to 'sqlite.zig')
-rw-r--r--sqlite.zig2
1 files changed, 1 insertions, 1 deletions
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 {
1499 /// 1499 ///
1500 /// This cannot allocate memory. If you need to read TEXT or BLOB columns you need to use arrays or alternatively call `oneAlloc`. 1500 /// This cannot allocate memory. If you need to read TEXT or BLOB columns you need to use arrays or alternatively call `oneAlloc`.
1501 pub fn one(self: *Self, comptime Type: type, options: QueryOptions, values: anytype) !?Type { 1501 pub fn one(self: *Self, comptime Type: type, options: QueryOptions, values: anytype) !?Type {
1502 var iter = try self.iterator(Type, .{}, values); 1502 var iter = try self.iterator(Type, values);
1503 1503
1504 const row = (try iter.next(options)) orelse return null; 1504 const row = (try iter.next(options)) orelse return null;
1505 return row; 1505 return row;