Skip to content

Commit a971a76

Browse files
committed
Apply patch from duckdb/duckdb#18107
1 parent d6a472b commit a971a76

File tree

2 files changed

+3
-7
lines changed

2 files changed

+3
-7
lines changed

duckdb

Submodule duckdb updated 63 files

extension/httpfs/httpfs.cpp

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,9 @@ namespace duckdb {
2323

2424
shared_ptr<HTTPUtil> HTTPFSUtil::GetHTTPUtil(optional_ptr<FileOpener> opener) {
2525
if (opener) {
26-
auto db = opener->TryGetDatabase();
27-
if (db) {
28-
auto &config = DBConfig::GetConfig(*db);
29-
return config.http_util;
30-
}
26+
return opener->GetHTTPUtil();
3127
}
32-
return make_shared_ptr<HTTPFSUtil>();
28+
throw InternalException("FileOpener not provided, can't get HTTPUtil");
3329
}
3430

3531
unique_ptr<HTTPParams> HTTPFSUtil::InitializeParameters(optional_ptr<FileOpener> opener,

0 commit comments

Comments
 (0)