Skip to content

Commit ed91ef0

Browse files
Add test for open flags
1 parent 1467366 commit ed91ef0

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/runtests.jl

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -906,6 +906,13 @@ function Base.iterate(::UnknownSchemaTable, st = 1)
906906
st == 4 ? nothing : ((a = 1, b = 2 + st, c = 3 + st), st + 1)
907907
end
908908

909+
@testset "SQLite Open Flags" begin
910+
@test_throws SQLiteException("unable to open database file") SQLite.DB("file:test.db?mode=ro")
911+
912+
db = SQLite.DB("file:test.db?mode=rwc")
913+
@test db isa SQLite.DB
914+
end
915+
909916
@testset "misc" begin
910917

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

0 commit comments

Comments
 (0)