diff options
Diffstat (limited to '')
| -rw-r--r-- | sqlite.zig | 2 |
1 files changed, 1 insertions, 1 deletions
| @@ -2019,7 +2019,7 @@ pub fn Statement(comptime opts: StatementOptions, comptime query: anytype) type | |||
| 2019 | const StructTypeInfo = @typeInfo(StructType).Struct; | 2019 | const StructTypeInfo = @typeInfo(StructType).Struct; |
| 2020 | 2020 | ||
| 2021 | if (comptime query.nb_bind_markers != StructTypeInfo.fields.len) { | 2021 | if (comptime query.nb_bind_markers != StructTypeInfo.fields.len) { |
| 2022 | @compileError(comptime std.fmt.comptimePrint("expected {d} bind parameters but got {d}", .{ | 2022 | @compileError(std.fmt.comptimePrint("expected {d} bind parameters but got {d}", .{ |
| 2023 | query.nb_bind_markers, | 2023 | query.nb_bind_markers, |
| 2024 | StructTypeInfo.fields.len, | 2024 | StructTypeInfo.fields.len, |
| 2025 | })); | 2025 | })); |