Skip to content

Commit

Permalink
Fixup IsRemoteFile patch
Browse files Browse the repository at this point in the history
  • Loading branch information
carlopi committed Jul 12, 2024
1 parent 3489399 commit 0a5c693
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 30 deletions.
13 changes: 13 additions & 0 deletions duckdb_patches/is_remote_file.absorbed.patch
Original file line number Diff line number Diff line change
Expand Up @@ -50,3 +50,16 @@ index 2c2b76a0fc..2d835441c2 100644
// get the database type and attach the database
db_manager.GetDatabaseType(context.client, db_type, *info, config, unrecognized_option);
auto attached_db = db_manager.AttachDatabase(context.client, *info, db_type, access_mode);
diff --git a/src/include/duckdb/common/file_system.hpp b/src/include/duckdb/common/file_system.hpp
index e0df2f70c2..e1ec953917 100644
--- a/src/include/duckdb/common/file_system.hpp
+++ b/src/include/duckdb/common/file_system.hpp
@@ -238,6 +238,8 @@ public:

//! Whether or not a file is remote or local, based only on file path
DUCKDB_API static bool IsRemoteFile(const string &path);
+ DUCKDB_API static bool IsRemoteFile(const string &path, string &extension);
+

DUCKDB_API virtual void SetDisabledFileSystems(const vector<string> &names);

30 changes: 0 additions & 30 deletions duckdb_patches/remote_attach.partial.patch

This file was deleted.

0 comments on commit 0a5c693

Please sign in to comment.