diff options
| author | 2021-10-13 10:18:53 +0800 | |
|---|---|---|
| committer | 2021-10-13 10:18:53 +0800 | |
| commit | a4c4e80d9700764f12a052a075fdb57b9b0da81b (patch) | |
| tree | 28a9bb30af52c755d6c71865a040dd5e66066ec5 | |
| parent | DynamicStatement.bindField: fix incompatible if branches for optionals (diff) | |
| download | zig-sqlite-a4c4e80d9700764f12a052a075fdb57b9b0da81b.tar.gz zig-sqlite-a4c4e80d9700764f12a052a075fdb57b9b0da81b.tar.xz zig-sqlite-a4c4e80d9700764f12a052a075fdb57b9b0da81b.zip | |
DynamicStatement.translateError: fix typo in name
| -rw-r--r-- | sqlite.zig | 4 |
1 files changed, 2 insertions, 2 deletions
| @@ -1118,7 +1118,7 @@ pub const DynamicStatement = struct { | |||
| 1118 | } | 1118 | } |
| 1119 | } | 1119 | } |
| 1120 | 1120 | ||
| 1121 | fn tanslateError(value: anytype) !void { | 1121 | fn translateError(value: anytype) !void { |
| 1122 | if (@TypeOf(value) != void) { | 1122 | if (@TypeOf(value) != void) { |
| 1123 | if (@typeInfo(@TypeOf(value)) == .ErrorUnion and @typeInfo(@TypeOf(value)).ErrorUnion.payload == void) { | 1123 | if (@typeInfo(@TypeOf(value)) == .ErrorUnion and @typeInfo(@TypeOf(value)).ErrorUnion.payload == void) { |
| 1124 | return value; | 1124 | return value; |
| @@ -1182,7 +1182,7 @@ pub const DynamicStatement = struct { | |||
| 1182 | }, | 1182 | }, |
| 1183 | }; | 1183 | }; |
| 1184 | 1184 | ||
| 1185 | return tanslateError(val); | 1185 | return translateError(val); |
| 1186 | } | 1186 | } |
| 1187 | 1187 | ||
| 1188 | fn bind(self: *Self, options: anytype, values: anytype) !void { | 1188 | fn bind(self: *Self, options: anytype, values: anytype) !void { |