File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11#ifndef DUCKDB_PATCH_VERSION
2- #define DUCKDB_PATCH_VERSION " 5-dev4 "
2+ #define DUCKDB_PATCH_VERSION " 5-dev6 "
33#endif
44#ifndef DUCKDB_MINOR_VERSION
55#define DUCKDB_MINOR_VERSION 4
88#define DUCKDB_MAJOR_VERSION 1
99#endif
1010#ifndef DUCKDB_VERSION
11- #define DUCKDB_VERSION " v1.4.5-dev4 "
11+ #define DUCKDB_VERSION " v1.4.5-dev6 "
1212#endif
1313#ifndef DUCKDB_SOURCE_ID
14- #define DUCKDB_SOURCE_ID " b6fbc09f79 "
14+ #define DUCKDB_SOURCE_ID " c5d5048669 "
1515#endif
1616#include " duckdb/function/table/system_functions.hpp"
1717#include " duckdb/main/database.hpp"
Original file line number Diff line number Diff line change @@ -841,13 +841,11 @@ string QueryProfiler::ToJSON() const {
841841}
842842
843843void QueryProfiler::WriteToFile (const char *path, string &info) const {
844- ofstream out (path);
845- out << info;
846- out.close ();
847- // throw an IO exception if it fails to write the file
848- if (out.fail ()) {
849- throw IOException (strerror (errno));
850- }
844+ auto &fs = FileSystem::GetFileSystem (context);
845+ auto flags = FileOpenFlags::FILE_FLAGS_WRITE | FileOpenFlags::FILE_FLAGS_FILE_CREATE_NEW;
846+ auto file = fs.OpenFile (path, flags);
847+ file->Write ((void *)info.c_str (), info.size ());
848+ file->Close ();
851849}
852850
853851profiler_settings_t EraseQueryRootSettings (profiler_settings_t settings) {
You can’t perform that action at this time.
0 commit comments