Skip to content

Commit

Permalink
explicitly type the column returned by getproperty to avoid column un…
Browse files Browse the repository at this point in the history
…ioning
  • Loading branch information
asinghvi17 authored Apr 3, 2024
1 parent f22fcf5 commit 08d38a8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/DBFTables.jl
Original file line number Diff line number Diff line change
Expand Up @@ -452,8 +452,7 @@ function Base.getproperty(dbf::Table, name::Symbol)
nrow = header.records
@inbounds field = getfields(dbf)[col]
str = getstrings(dbf)
@inbounds colarr = [julia_value(field, str[col, i]) for i = 1:nrow]
return colarr
return @inbounds Union{field.type, Missing}[julia_value(field, str[col, i]) for i = 1:nrow]
end


Expand Down

0 comments on commit 08d38a8

Please sign in to comment.