Skip to content

Commit 415e26f

Browse files
duckdblabs-botgithub-actions[bot]
authored andcommitted
Update vendored DuckDB sources to c5d5048669
1 parent 7824096 commit 415e26f

2 files changed

Lines changed: 8 additions & 10 deletions

File tree

src/duckdb/src/function/table/version/pragma_version.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
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
@@ -8,10 +8,10 @@
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"

src/duckdb/src/main/query_profiler.cpp

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -841,13 +841,11 @@ string QueryProfiler::ToJSON() const {
841841
}
842842

843843
void 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

853851
profiler_settings_t EraseQueryRootSettings(profiler_settings_t settings) {

0 commit comments

Comments
 (0)