Skip to content

Commit e9a7c47

Browse files
committed
fix: adjustments
1 parent f25f7e1 commit e9a7c47

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

src/jetquery/Repo.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1197,7 +1197,7 @@ test "timestamps" {
11971197
);
11981198

11991199
const now = std.time.microTimestamp();
1200-
std.time.sleep(std.time.ns_per_ms);
1200+
std.Thread.sleep(std.time.ns_per_ms);
12011201

12021202
try repo.Query(.Cat).insert(.{ .name = "Hercules", .paws = 4 }).execute(&repo);
12031203

src/jetquery/reflection/util.zig

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,9 +74,9 @@ pub fn zigEscape(
7474
const writer = buf.writer();
7575
const formatter = switch (context) {
7676
.id => std.zig.fmtId(input),
77-
.string => std.zig.fmtEscapes(input),
77+
.string => std.zig.fmtString(input),
7878
};
7979

80-
try writer.print("{}", .{formatter});
80+
try writer.print("{any}", .{formatter});
8181
return try buf.toOwnedSlice();
8282
}

src/jetquery/sql/Where.zig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ fn nodeTree(
659659

660660
var t: type = OG;
661661
for (path[0 .. path.len - 1]) |c| {
662-
t = std.meta.FieldType(t, std.enums.nameCast(std.meta.FieldEnum(t), c));
662+
t = @FieldType(t, std.enums.nameCast(std.meta.FieldEnum(t), c));
663663
}
664664
const value: t = undefined;
665665
const condition = @field(value, path[path.len - 1]);

0 commit comments

Comments
 (0)