duckdb 0.5.1-dev126.0 → 0.5.1-dev128.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.5.1-dev126.0",
4
+ "version": "0.5.1-dev128.0",
5
5
  "description": "DuckDB node.js API",
6
6
  "gypfile": true,
7
7
  "dependencies": {
package/src/duckdb.cpp CHANGED
@@ -5030,12 +5030,16 @@ bool CatalogSet::AlterEntry(ClientContext &context, const string &name, AlterInf
5030
5030
  throw CatalogException(rename_err_msg, original_name, value->name);
5031
5031
  }
5032
5032
  }
5033
- PutMapping(context, value->name, entry_index);
5034
- DeleteMapping(context, original_name);
5035
5033
  }
5036
5034
  //! Check the dependency manager to verify that there are no conflicting dependencies with this alter
5037
5035
  catalog.dependency_manager->AlterObject(context, entry, value.get());
5038
5036
 
5037
+ if (value->name != original_name) {
5038
+ // Do PutMapping and DeleteMapping after dependency check
5039
+ PutMapping(context, value->name, entry_index);
5040
+ DeleteMapping(context, original_name);
5041
+ }
5042
+
5039
5043
  value->timestamp = transaction.transaction_id;
5040
5044
  value->child = move(entries[entry_index]);
5041
5045
  value->child->parent = value.get();
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 "3591cd172"
15
- #define DUCKDB_VERSION "v0.5.1-dev126"
14
+ #define DUCKDB_SOURCE_ID "a5b74ff1c"
15
+ #define DUCKDB_VERSION "v0.5.1-dev128"
16
16
  //===----------------------------------------------------------------------===//
17
17
  // DuckDB
18
18
  //