summaryrefslogtreecommitdiff
path: root/vtab.zig
diff options
context:
space:
mode:
authorGravatar Vincent Rischmann2022-09-18 20:12:56 +0200
committerGravatar Vincent Rischmann2022-09-18 20:12:56 +0200
commitc03103c712a5b459dcbe82bf265666b580bd32b9 (patch)
tree623d48a33e2a4e69bbc15a6a6dc8609cdf41169c /vtab.zig
parentadd the virtual table implementation (diff)
downloadzig-sqlite-c03103c712a5b459dcbe82bf265666b580bd32b9.tar.gz
zig-sqlite-c03103c712a5b459dcbe82bf265666b580bd32b9.tar.xz
zig-sqlite-c03103c712a5b459dcbe82bf265666b580bd32b9.zip
remove debug print
Diffstat (limited to '')
-rw-r--r--vtab.zig7
1 files changed, 0 insertions, 7 deletions
diff --git a/vtab.zig b/vtab.zig
index acaac42..1f16e3b 100644
--- a/vtab.zig
+++ b/vtab.zig
@@ -1140,9 +1140,6 @@ const TestVirtualTableCursor = struct {
1140 pub fn filter(cursor: *TestVirtualTableCursor, diags: *VTabDiagnostics, index: IndexIdentifier, args: []FilterArg) FilterError!void { 1140 pub fn filter(cursor: *TestVirtualTableCursor, diags: *VTabDiagnostics, index: IndexIdentifier, args: []FilterArg) FilterError!void {
1141 _ = diags; 1141 _ = diags;
1142 1142
1143 debug.print("idx num: {d}\n", .{index.num});
1144 debug.print("idx str: {s}\n", .{index.str});
1145
1146 var id = index.str; 1143 var id = index.str;
1147 1144
1148 // NOTE(vincent): this is an ugly ass parser for the index string, don't judge me. 1145 // NOTE(vincent): this is an ugly ass parser for the index string, don't judge me.
@@ -1173,8 +1170,6 @@ const TestVirtualTableCursor = struct {
1173 return error.InvalidColumn; 1170 return error.InvalidColumn;
1174 } 1171 }
1175 } 1172 }
1176
1177 debug.print("expected args: {d}\n", .{i});
1178 } 1173 }
1179 1174
1180 pub const NextError = error{}; 1175 pub const NextError = error{};
@@ -1269,8 +1264,6 @@ test "virtual table" {
1269 try testing.expect(rows.len > 0); 1264 try testing.expect(rows.len > 0);
1270 1265
1271 for (rows) |row| { 1266 for (rows) |row| {
1272 debug.print("result row: id={d} foo={s} bar={s} baz={d}\n", .{ row.id, row.foo, row.bar, row.baz });
1273
1274 try testing.expectEqualStrings("Vincent", row.foo); 1267 try testing.expectEqualStrings("Vincent", row.foo);
1275 try testing.expectEqualStrings("Michel", row.bar); 1268 try testing.expectEqualStrings("Michel", row.bar);
1276 try testing.expect(row.baz > 2); 1269 try testing.expect(row.baz > 2);