Skip to content

Commit 96fe080

Browse files
authored
Remove warning in juliatype (#290)
* Remove warning in juliatype This addresses issue #279 * Remove test for unknown types in database
1 parent d99fdfb commit 96fe080

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

src/SQLite.jl

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -413,7 +413,6 @@ function juliatype(decl_typestr::AbstractString,
413413
elseif occursin(r"^NUMERIC\(\d+,\d+\)$", typeuc)
414414
return Float64
415415
else
416-
@warn "Unsupported SQLite declared type $decl_typestr, falling back to $default type"
417416
return default
418417
end
419418
end

test/runtests.jl

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -505,18 +505,7 @@ end
505505
435,
506506
],
507507
)
508-
rr = (;) # just to have the var declared
509-
@test_logs(
510-
(
511-
:warn,
512-
"Unsupported SQLite declared type UNKNOWN1, falling back to String type",
513-
),
514-
(
515-
:warn,
516-
"Unsupported SQLite declared type UNKNOWN2, falling back to $(Int64) type",
517-
),
518-
rr = DBInterface.execute(rowtable, binddb, "SELECT * FROM temp")
519-
)
508+
rr = DBInterface.execute(rowtable, binddb, "SELECT * FROM temp")
520509
@test length(rr) == 1
521510
r = first(rr)
522511
@test typeof.(Tuple(r)) == (

0 commit comments

Comments
 (0)