summaryrefslogtreecommitdiff
path: root/sqlite.zig
diff options
context:
space:
mode:
authorGravatar Matthias Portzel2025-01-20 17:33:51 -0500
committerGravatar Matthias Portzel2025-01-20 17:33:51 -0500
commit8b6621abdc06a1cdd534ebc64957a3e3395209a4 (patch)
treea6e2f11cf1c0a6e2130eeedcbfb0ae4afb37ba17 /sqlite.zig
parentbuild: disable mips in tests (diff)
downloadzig-sqlite-8b6621abdc06a1cdd534ebc64957a3e3395209a4.tar.gz
zig-sqlite-8b6621abdc06a1cdd534ebc64957a3e3395209a4.tar.xz
zig-sqlite-8b6621abdc06a1cdd534ebc64957a3e3395209a4.zip
Update some missed Int -> int
Diffstat (limited to '')
-rw-r--r--sqlite.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/sqlite.zig b/sqlite.zig
index 08e0a34..395d290 100644
--- a/sqlite.zig
+++ b/sqlite.zig
@@ -1463,7 +1463,7 @@ pub fn Iterator(comptime Type: type) type {
1463 1463
1464 return std.meta.stringToEnum(FieldType, inner_value) orelse FieldType.default; 1464 return std.meta.stringToEnum(FieldType, inner_value) orelse FieldType.default;
1465 } 1465 }
1466 if (@typeInfo(FieldType.BaseType) == .Int) { 1466 if (@typeInfo(FieldType.BaseType) == .int) {
1467 return @enumFromInt(@as(TI.tag_type, @intCast(inner_value))); 1467 return @enumFromInt(@as(TI.tag_type, @intCast(inner_value)));
1468 } 1468 }
1469 @compileError("enum column " ++ @typeName(FieldType) ++ " must have a BaseType of either string or int"); 1469 @compileError("enum column " ++ @typeName(FieldType) ++ " must have a BaseType of either string or int");
@@ -1680,7 +1680,7 @@ pub const DynamicStatement = struct {
1680 .@"enum" => { 1680 .@"enum" => {
1681 if (comptime isZigString(FieldType.BaseType)) { 1681 if (comptime isZigString(FieldType.BaseType)) {
1682 try self.bindField(FieldType.BaseType, options, field_name, i, @tagName(field)); 1682 try self.bindField(FieldType.BaseType, options, field_name, i, @tagName(field));
1683 } else if (@typeInfo(FieldType.BaseType) == .Int) { 1683 } else if (@typeInfo(FieldType.BaseType) == .int) {
1684 try self.bindField(FieldType.BaseType, options, field_name, i, @intFromEnum(field)); 1684 try self.bindField(FieldType.BaseType, options, field_name, i, @intFromEnum(field));
1685 } else { 1685 } else {
1686 @compileError("enum column " ++ @typeName(FieldType) ++ " must have a BaseType of either string or int to bind"); 1686 @compileError("enum column " ++ @typeName(FieldType) ++ " must have a BaseType of either string or int to bind");