summaryrefslogtreecommitdiff
path: root/sqlite.zig
diff options
context:
space:
mode:
authorGravatar Vincent Rischmann2021-01-01 22:56:52 +0100
committerGravatar Vincent Rischmann2021-01-01 22:56:52 +0100
commited38b0d66aeb49f84c9dbcd5cc82a5d018622739 (patch)
treeea3099981fc7512533194a91cfee3441f7613cbb /sqlite.zig
parentcheck the weight field too (diff)
downloadzig-sqlite-ed38b0d66aeb49f84c9dbcd5cc82a5d018622739.tar.gz
zig-sqlite-ed38b0d66aeb49f84c9dbcd5cc82a5d018622739.tar.xz
zig-sqlite-ed38b0d66aeb49f84c9dbcd5cc82a5d018622739.zip
fix compile error
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 3291fbd..7e6018e 100644
--- a/sqlite.zig
+++ b/sqlite.zig
@@ -733,7 +733,7 @@ pub fn Statement(comptime opts: StatementOptions, comptime query: ParsedQuery) t
733 733
734 _ = c.sqlite3_bind_text(self.stmt, column, data.ptr, @intCast(c_int, data.len), null); 734 _ = c.sqlite3_bind_text(self.stmt, column, data.ptr, @intCast(c_int, data.len), null);
735 }, 735 },
736 else => @compileError("cannot bind field " ++ field.name ++ " of type array of " ++ @typeName(arr.child)), 736 else => @compileError("cannot bind field " ++ struct_field.name ++ " of type array of " ++ @typeName(arr.child)),
737 } 737 }
738 }, 738 },
739 else => @compileError("cannot bind field " ++ struct_field.name ++ " of type " ++ @typeName(struct_field.field_type)), 739 else => @compileError("cannot bind field " ++ struct_field.name ++ " of type " ++ @typeName(struct_field.field_type)),