duckdb 0.7.2-dev1244.0 → 0.7.2-dev1256.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.
@@ -323,6 +323,10 @@ BinderException::BinderException(const string &msg) : StandardException(Exceptio
323
323
  IOException::IOException(const string &msg) : Exception(ExceptionType::IO, msg) {
324
324
  }
325
325
 
326
+ MissingExtensionException::MissingExtensionException(const string &msg)
327
+ : Exception(ExceptionType::MISSING_EXTENSION, msg) {
328
+ }
329
+
326
330
  SerializationException::SerializationException(const string &msg) : Exception(ExceptionType::SERIALIZATION, msg) {
327
331
  }
328
332
 
@@ -1,8 +1,8 @@
1
1
  #ifndef DUCKDB_VERSION
2
- #define DUCKDB_VERSION "0.7.2-dev1244"
2
+ #define DUCKDB_VERSION "0.7.2-dev1256"
3
3
  #endif
4
4
  #ifndef DUCKDB_SOURCE_ID
5
- #define DUCKDB_SOURCE_ID "ab5c07cb68"
5
+ #define DUCKDB_SOURCE_ID "cef3bdcb8c"
6
6
  #endif
7
7
  #include "duckdb/function/table/system_functions.hpp"
8
8
  #include "duckdb/main/database.hpp"
@@ -78,7 +78,8 @@ enum class ExceptionType {
78
78
  PARAMETER_NOT_RESOLVED = 35, // parameter types could not be resolved
79
79
  PARAMETER_NOT_ALLOWED = 36, // parameter types not allowed
80
80
  DEPENDENCY = 37, // dependency
81
- HTTP = 38
81
+ HTTP = 38,
82
+ MISSING_EXTENSION = 39 // Thrown when an extension is used but not loaded
82
83
  };
83
84
  class HTTPException;
84
85
 
@@ -272,13 +273,13 @@ public:
272
273
  }
273
274
  };
274
275
 
275
- class MissingExtensionException : public IOException {
276
+ class MissingExtensionException : public Exception {
276
277
  public:
277
278
  DUCKDB_API explicit MissingExtensionException(const string &msg);
278
279
 
279
280
  template <typename... Args>
280
281
  explicit MissingExtensionException(const string &msg, Args... params)
281
- : IOException(ConstructMessage(msg, params...)) {
282
+ : MissingExtensionException(ConstructMessage(msg, params...)) {
282
283
  }
283
284
  };
284
285
 
@@ -59,7 +59,7 @@ bool ExtensionHelper::TryInitialLoad(DBConfig &config, FileOpener *opener, const
59
59
  if (!config.options.allow_unsigned_extensions) {
60
60
  auto handle = fs.OpenFile(filename, FileFlags::FILE_FLAGS_READ);
61
61
 
62
- // signature is the last 265 bytes of the file
62
+ // signature is the last 256 bytes of the file
63
63
 
64
64
  string signature;
65
65
  signature.resize(256);
@@ -348,17 +348,17 @@
348
348
 
349
349
  #include "extension/icu/third_party/icu/i18n/wintzimpl.cpp"
350
350
 
351
- #include "extension/icu/third_party/icu/i18n/double-conversion-strtod.cpp"
352
-
353
- #include "extension/icu/third_party/icu/i18n/double-conversion-bignum-dtoa.cpp"
354
-
355
- #include "extension/icu/third_party/icu/i18n/double-conversion-string-to-double.cpp"
351
+ #include "extension/icu/third_party/icu/i18n/double-conversion-double-to-string.cpp"
356
352
 
357
353
  #include "extension/icu/third_party/icu/i18n/double-conversion-bignum.cpp"
358
354
 
359
355
  #include "extension/icu/third_party/icu/i18n/double-conversion-cached-powers.cpp"
360
356
 
361
- #include "extension/icu/third_party/icu/i18n/double-conversion-double-to-string.cpp"
357
+ #include "extension/icu/third_party/icu/i18n/double-conversion-string-to-double.cpp"
358
+
359
+ #include "extension/icu/third_party/icu/i18n/double-conversion-bignum-dtoa.cpp"
360
+
361
+ #include "extension/icu/third_party/icu/i18n/double-conversion-strtod.cpp"
362
362
 
363
363
  #include "extension/icu/third_party/icu/i18n/double-conversion-fast-dtoa.cpp"
364
364