Skip to content
This repository has been archived by the owner on Sep 27, 2019. It is now read-only.

Commit

Permalink
Merge f56beb3 into 3bc6d46
Browse files Browse the repository at this point in the history
  • Loading branch information
RonyMin committed Nov 30, 2018
2 parents 3bc6d46 + f56beb3 commit e55c1d0
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/codegen/util/csv_scanner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,9 @@ void CSVScanner::ProduceCSV(char *line) {
cols_[col_idx].len = static_cast<uint32_t>(col_end - col_begin);
cols_[col_idx].is_null = (cols_[col_idx].len == 0);

// Yoon-Min: replace delimiter to '\0' to fix a bug while comparing
// filter condition in a query and column value of VARCHAR type
*iter = 0;
// Eat delimiter, moving to next column
iter++;
}
Expand All @@ -372,4 +375,4 @@ void CSVScanner::ProduceCSV(char *line) {

} // namespace util
} // namespace codegen
} // namespace peloton
} // namespace peloton

0 comments on commit e55c1d0

Please sign in to comment.