summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--sqlite.zig27
1 files changed, 19 insertions, 8 deletions
diff --git a/sqlite.zig b/sqlite.zig
index 9efad10..fd5b606 100644
--- a/sqlite.zig
+++ b/sqlite.zig
@@ -659,14 +659,25 @@ test "sqlite: db pragma" {
659 testing.expect(foreign_keys != null); 659 testing.expect(foreign_keys != null);
660 testing.expectEqual(@as(usize, 0), foreign_keys.?); 660 testing.expectEqual(@as(usize, 0), foreign_keys.?);
661 661
662 const journal_mode = try db.pragma( 662 if (build_options.is_ci) {
663 []const u8, 663 const journal_mode = try db.pragma(
664 "journal_mode", 664 []const u8,
665 .{ .allocator = &arena.allocator }, 665 "journal_mode",
666 .{"wal"}, 666 .{ .allocator = &arena.allocator },
667 ); 667 .{"wal"},
668 testing.expect(journal_mode != null); 668 );
669 testing.expectEqualStrings("wal", journal_mode.?); 669 testing.expect(journal_mode != null);
670 testing.expectEqualStrings("memory", journal_mode.?);
671 } else {
672 const journal_mode = try db.pragma(
673 []const u8,
674 "journal_mode",
675 .{ .allocator = &arena.allocator },
676 .{"wal"},
677 );
678 testing.expect(journal_mode != null);
679 testing.expectEqualStrings("wal", journal_mode.?);
680 }
670} 681}
671 682
672test "sqlite: statement exec" { 683test "sqlite: statement exec" {