Skip to content

Commit

Permalink
Add test for open flags
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremiahpslewis committed Dec 8, 2022
1 parent 1467366 commit ed91ef0
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -906,6 +906,13 @@ function Base.iterate(::UnknownSchemaTable, st = 1)
st == 4 ? nothing : ((a = 1, b = 2 + st, c = 3 + st), st + 1)
end

@testset "SQLite Open Flags" begin
@test_throws SQLiteException("unable to open database file") SQLite.DB("file:test.db?mode=ro")

db = SQLite.DB("file:test.db?mode=rwc")
@test db isa SQLite.DB
end

@testset "misc" begin

# https://github.com/JuliaDatabases/SQLite.jl/issues/259
Expand Down

0 comments on commit ed91ef0

Please sign in to comment.