Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions src/duckdb/src/common/csv_writer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,9 @@ void CSVWriter::WriteQuoteOrEscape(WriteStream &writer, char quote_or_escape) {
}

string CSVWriter::AddEscapes(char to_be_escaped, char escape, const string &val) {
if (escape == '\0') {
return val;
}
idx_t i = 0;
string new_val = "";
idx_t found = val.find(to_be_escaped);
Expand All @@ -237,10 +240,8 @@ string CSVWriter::AddEscapes(char to_be_escaped, char escape, const string &val)
new_val += val[i];
i++;
}
if (escape != '\0') {
new_val += escape;
found = val.find(to_be_escaped, found + 1);
}
new_val += escape;
found = val.find(to_be_escaped, found + 1);
}
while (i < val.length()) {
new_val += val[i];
Expand Down
6 changes: 3 additions & 3 deletions src/duckdb/src/function/table/version/pragma_version.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#ifndef DUCKDB_PATCH_VERSION
#define DUCKDB_PATCH_VERSION "5-dev6"
#define DUCKDB_PATCH_VERSION "5-dev13"
#endif
#ifndef DUCKDB_MINOR_VERSION
#define DUCKDB_MINOR_VERSION 4
Expand All @@ -8,10 +8,10 @@
#define DUCKDB_MAJOR_VERSION 1
#endif
#ifndef DUCKDB_VERSION
#define DUCKDB_VERSION "v1.4.5-dev6"
#define DUCKDB_VERSION "v1.4.5-dev13"
#endif
#ifndef DUCKDB_SOURCE_ID
#define DUCKDB_SOURCE_ID "c5d5048669"
#define DUCKDB_SOURCE_ID "32a088ad40"
#endif
#include "duckdb/function/table/system_functions.hpp"
#include "duckdb/main/database.hpp"
Expand Down