diff --git a/src/duckdb/src/common/csv_writer.cpp b/src/duckdb/src/common/csv_writer.cpp index 0f312669..603618fd 100644 --- a/src/duckdb/src/common/csv_writer.cpp +++ b/src/duckdb/src/common/csv_writer.cpp @@ -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); @@ -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]; diff --git a/src/duckdb/src/function/table/version/pragma_version.cpp b/src/duckdb/src/function/table/version/pragma_version.cpp index 86d2059c..62180a1f 100644 --- a/src/duckdb/src/function/table/version/pragma_version.cpp +++ b/src/duckdb/src/function/table/version/pragma_version.cpp @@ -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 @@ -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"