duckdb 0.3.3-dev508.0 → 0.3.3-dev513.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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "duckdb",
3
3
  "main": "./lib/duckdb.js",
4
- "version": "0.3.3-dev508.0",
4
+ "version": "0.3.3-dev513.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -2639,6 +2639,8 @@ protected:
2639
2639
 
2640
2640
 
2641
2641
 
2642
+
2643
+
2642
2644
  #include <algorithm>
2643
2645
  #include <sstream>
2644
2646
 
@@ -2929,6 +2931,15 @@ unique_ptr<CatalogEntry> TableCatalogEntry::SetDefault(ClientContext &context, S
2929
2931
  }
2930
2932
 
2931
2933
  unique_ptr<CatalogEntry> TableCatalogEntry::ChangeColumnType(ClientContext &context, ChangeColumnTypeInfo &info) {
2934
+ if (info.target_type.id() == LogicalTypeId::USER) {
2935
+ auto &user_type_name = UserType::GetTypeName(info.target_type);
2936
+ auto user_type_catalog = (TypeCatalogEntry *)context.db->GetCatalog().GetEntry(
2937
+ context, CatalogType::TYPE_ENTRY, schema->name, user_type_name, true);
2938
+ if (!user_type_catalog) {
2939
+ throw NotImplementedException("DataType %s not supported yet...\n", user_type_name);
2940
+ }
2941
+ info.target_type = user_type_catalog->user_type;
2942
+ }
2932
2943
  auto create_info = make_unique<CreateTableInfo>(schema->name, name);
2933
2944
  idx_t change_idx = GetColumnIndex(info.column_name);
2934
2945
  for (idx_t i = 0; i < columns.size(); i++) {
package/src/duckdb.hpp CHANGED
@@ -11,8 +11,8 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI
11
11
  #pragma once
12
12
  #define DUCKDB_AMALGAMATION 1
13
13
  #define DUCKDB_AMALGAMATION_EXTENDED 1
14
- #define DUCKDB_SOURCE_ID "271ccd2bd"
15
- #define DUCKDB_VERSION "v0.3.3-dev508"
14
+ #define DUCKDB_SOURCE_ID "75fc1b014"
15
+ #define DUCKDB_VERSION "v0.3.3-dev513"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //