From 4281ca5f5abb3a3fa56083414f209eb1ae3f1b8b Mon Sep 17 00:00:00 2001 From: Carlo Piovesan Date: Fri, 8 Sep 2023 11:29:11 +0200 Subject: [PATCH] Apply patch enabling autoloading of httpfs depenency --- src/aws_extension.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/aws_extension.cpp b/src/aws_extension.cpp index e1467a2..6f78fca 100644 --- a/src/aws_extension.cpp +++ b/src/aws_extension.cpp @@ -3,6 +3,7 @@ #include "aws_extension.hpp" #include "duckdb.hpp" #include "duckdb/common/exception.hpp" +#include "duckdb/catalog/catalog.hpp" #include "duckdb/main/extension_util.hpp" #include #include @@ -104,7 +105,7 @@ static void LoadAWSCredentialsFun(ClientContext &context, TableFunctionInput &da return; } - if (!context.db->ExtensionIsLoaded("httpfs")) { + if (!Catalog::TryAutoLoad(context, "httpfs")) { throw MissingExtensionException("httpfs extension is required for load_aws_credentials"); }