Skip to content

Commit

Permalink
updating some test cases, fix for newlines for 'copy from' (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
Tania Bogatsch committed Oct 9, 2019
1 parent 2012713 commit ea10932
Show file tree
Hide file tree
Showing 3 changed files with 133 additions and 135 deletions.
2 changes: 1 addition & 1 deletion src/execution/operator/persistent/buffered_csv_reader.cpp
Expand Up @@ -137,7 +137,7 @@ void BufferedCSVReader::ParseCSV(DataChunk &insert_chunk) {

// if QUOTE equals ESCAPE we might need to determine which one we detected in the previous loop
if (quote_or_escape) {
if (delimiter) {
if (delimiter || is_newline(buffer[position]) || (source.eof() && position + 1 == buffer_size)) {
// found quote without escape, end quote
offset = quote_l;
in_quotes = false;
Expand Down

0 comments on commit ea10932

Please sign in to comment.