duckdb 0.6.2-dev766.0 → 0.6.2-dev768.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "duckdb",
3
3
  "main": "./lib/duckdb.js",
4
4
  "types": "./lib/duckdb.d.ts",
5
- "version": "0.6.2-dev766.0",
5
+ "version": "0.6.2-dev768.0",
6
6
  "description": "DuckDB node.js API",
7
7
  "gypfile": true,
8
8
  "dependencies": {
@@ -1,8 +1,8 @@
1
1
  #ifndef DUCKDB_VERSION
2
- #define DUCKDB_VERSION "0.6.2-dev766"
2
+ #define DUCKDB_VERSION "0.6.2-dev768"
3
3
  #endif
4
4
  #ifndef DUCKDB_SOURCE_ID
5
- #define DUCKDB_SOURCE_ID "81c7b8cfb6"
5
+ #define DUCKDB_SOURCE_ID "bade062078"
6
6
  #endif
7
7
  #include "duckdb/function/table/system_functions.hpp"
8
8
  #include "duckdb/main/database.hpp"
@@ -49,7 +49,7 @@ ExtensionInitResult ExtensionHelper::InitialLoad(DBConfig &config, FileOpener *o
49
49
  }
50
50
  throw IOException("Extension \"%s\" not found.\n%s", filename, message);
51
51
  }
52
- {
52
+ if (!config.options.allow_unsigned_extensions) {
53
53
  auto handle = fs.OpenFile(filename, FileFlags::FILE_FLAGS_READ);
54
54
 
55
55
  // signature is the last 265 bytes of the file
@@ -75,7 +75,7 @@ ExtensionInitResult ExtensionHelper::InitialLoad(DBConfig &config, FileOpener *o
75
75
  break;
76
76
  }
77
77
  }
78
- if (!any_valid && !config.options.allow_unsigned_extensions) {
78
+ if (!any_valid) {
79
79
  throw IOException(config.error_manager->FormatException(ErrorType::UNSIGNED_EXTENSION, filename));
80
80
  }
81
81
  }