Skip to content

Commit

Permalink
fix csv parser incorrect if enclosing line_delimiter
Browse files Browse the repository at this point in the history
Co-authored-by: Xin Liao <[email protected]>
  • Loading branch information
sollhui and liaoxin01 committed Jul 25, 2024
1 parent ceead84 commit 409e0b5
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,6 +160,11 @@ void EncloseCsvLineReaderContext::_on_pre_match_enclose(const uint8_t* start, si
if (_idx != _total_len) {
len = update_reading_bound(start);
} else {
// It needs to set the result to nullptr for matching enclose may not be read
// after reading the output buf.
// Therefore, if the result is not set to nullptr,
// the parser will consider reading a line as there is a line delimiter.
_result = nullptr;
break;
}
} while (true);
Expand Down

0 comments on commit 409e0b5

Please sign in to comment.