Skip to content

Commit

Permalink
Special-case all StringTypes
Browse files Browse the repository at this point in the history
  • Loading branch information
nickrobinson251 committed Jan 29, 2022
1 parent fb99462 commit 887ec40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/file.jl
Original file line number Diff line number Diff line change
Expand Up @@ -762,7 +762,7 @@ function parsevalue!(::Type{type}, buf, pos, len, row, rowoffset, i, col, ctx)::
opts = col.options
res = Parsers.xparse(type === Missing ? String : type, buf, pos, len, opts)
code = res.code
if (type === String && Parsers.valueok(code)) || !Parsers.invalid(code)
if (type isa StringTypes && Parsers.valueok(code)) || !Parsers.invalid(code)
if type !== Missing
if Parsers.sentinel(code)
col.anymissing = true
Expand Down

0 comments on commit 887ec40

Please sign in to comment.