From cab69ac5b7eb0ac6ff2ad231a47c4fc66bbd1a66 Mon Sep 17 00:00:00 2001 From: DuckDB Labs GitHub Bot Date: Fri, 30 Jan 2026 07:08:53 +0000 Subject: [PATCH] Update vendored DuckDB sources to c5d5048669 --- .../src/function/table/version/pragma_version.cpp | 6 +++--- src/duckdb/src/main/query_profiler.cpp | 12 +++++------- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/duckdb/src/function/table/version/pragma_version.cpp b/src/duckdb/src/function/table/version/pragma_version.cpp index 8c9b4c745..86d2059c2 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-dev4" +#define DUCKDB_PATCH_VERSION "5-dev6" #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-dev4" +#define DUCKDB_VERSION "v1.4.5-dev6" #endif #ifndef DUCKDB_SOURCE_ID -#define DUCKDB_SOURCE_ID "b6fbc09f79" +#define DUCKDB_SOURCE_ID "c5d5048669" #endif #include "duckdb/function/table/system_functions.hpp" #include "duckdb/main/database.hpp" diff --git a/src/duckdb/src/main/query_profiler.cpp b/src/duckdb/src/main/query_profiler.cpp index bbbc62a7f..0ea7469f6 100644 --- a/src/duckdb/src/main/query_profiler.cpp +++ b/src/duckdb/src/main/query_profiler.cpp @@ -841,13 +841,11 @@ string QueryProfiler::ToJSON() const { } void QueryProfiler::WriteToFile(const char *path, string &info) const { - ofstream out(path); - out << info; - out.close(); - // throw an IO exception if it fails to write the file - if (out.fail()) { - throw IOException(strerror(errno)); - } + auto &fs = FileSystem::GetFileSystem(context); + auto flags = FileOpenFlags::FILE_FLAGS_WRITE | FileOpenFlags::FILE_FLAGS_FILE_CREATE_NEW; + auto file = fs.OpenFile(path, flags); + file->Write((void *)info.c_str(), info.size()); + file->Close(); } profiler_settings_t EraseQueryRootSettings(profiler_settings_t settings) {