Skip to content

Commit 73cb502

Browse files
committed
Fix type instability in Data.getfield
1 parent fcb04ba commit 73cb502

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Source.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ function Data.getfield{T}(source::SQLite.Source, ::Type{T}, row, col)
9191
throw(NullException)
9292
else
9393
TT = SQLite.juliatype(t) # native SQLite Int, Float, and Text types
94-
val = sqlitevalue(ifelse(TT === Any && !isbits(T), T, TT), handle, col)
94+
val::T = sqlitevalue(ifelse(TT === Any && !isbits(T), T, TT), handle, col)
9595
end
9696
col == source.schema.cols && (source.status = sqlite3_step(handle))
9797
return val

0 commit comments

Comments
 (0)