Skip to content

Commit

Permalink
Change API
Browse files Browse the repository at this point in the history
  • Loading branch information
carlopi committed Aug 26, 2024
1 parent 13ff88d commit 18e07e9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/src/io/file_page_buffer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -230,7 +230,7 @@ std::unique_ptr<FilePageBuffer::FileRef> FilePageBuffer::OpenFile(std::string_vi
}

// User requested truncation of existing file?
if (flags.flags == idx_t(1 << 4)) {
if (flags.GetFlagsInternal() == idx_t(1 << 4)) {
// FIXME/review
// condition on flags.OverwriteExistingFile() triggers in test
std::string path_buf{path};
Expand Down
2 changes: 1 addition & 1 deletion lib/src/io/web_filesystem.cc
Original file line number Diff line number Diff line change
Expand Up @@ -645,7 +645,7 @@ duckdb::unique_ptr<duckdb::FileHandle> WebFileSystem::OpenFile(const string &url
case DataProtocol::S3:
try {
// Open the file
auto *opened = duckdb_web_fs_file_open(file->file_id_, flags.flags);
auto *opened = duckdb_web_fs_file_open(file->file_id_, flags.GetFlagsInternal());
if (opened == nullptr) {
if (flags.ReturnNullIfNotExists()) {
return nullptr;
Expand Down
2 changes: 1 addition & 1 deletion submodules/duckdb
Submodule duckdb updated 204 files

0 comments on commit 18e07e9

Please sign in to comment.