diff options
| author | 2021-11-22 22:46:38 +0100 | |
|---|---|---|
| committer | 2021-11-22 23:34:41 +0100 | |
| commit | c087762586a5601473ac181cbb4c7a462ec090b8 (patch) | |
| tree | a83dd20ecc14c0e9cac48b249897c413b5606686 /sqlite.zig | |
| parent | remove smartBind/bindNamedStruct, they're not actually necessary (diff) | |
| download | zig-sqlite-c087762586a5601473ac181cbb4c7a462ec090b8.tar.gz zig-sqlite-c087762586a5601473ac181cbb4c7a462ec090b8.tar.xz zig-sqlite-c087762586a5601473ac181cbb4c7a462ec090b8.zip | |
dynamic statement: fix one()
Diffstat (limited to '')
| -rw-r--r-- | sqlite.zig | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -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; |