duckdb 0.6.2-dev1015.0 → 0.6.2-dev1017.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 +1 -1
- package/src/duckdb/src/catalog/catalog.cpp +1 -1
- package/src/duckdb/src/function/table/version/pragma_version.cpp +2 -2
- package/src/duckdb/src/include/duckdb/main/database_manager.hpp +3 -0
- package/src/duckdb/src/main/client_data.cpp +2 -0
- package/src/duckdb/src/main/database_manager.cpp +1 -0
package/package.json
CHANGED
|
@@ -741,7 +741,7 @@ idx_t Catalog::GetCatalogVersion() {
|
|
|
741
741
|
}
|
|
742
742
|
|
|
743
743
|
idx_t Catalog::ModifyCatalog() {
|
|
744
|
-
return GetDatabase().GetDatabaseManager().
|
|
744
|
+
return GetDatabase().GetDatabaseManager().ModifyCatalog();
|
|
745
745
|
}
|
|
746
746
|
|
|
747
747
|
bool Catalog::IsSystemCatalog() const {
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#ifndef DUCKDB_VERSION
|
|
2
|
-
#define DUCKDB_VERSION "0.6.2-
|
|
2
|
+
#define DUCKDB_VERSION "0.6.2-dev1017"
|
|
3
3
|
#endif
|
|
4
4
|
#ifndef DUCKDB_SOURCE_ID
|
|
5
|
-
#define DUCKDB_SOURCE_ID "
|
|
5
|
+
#define DUCKDB_SOURCE_ID "b056090a0c"
|
|
6
6
|
#endif
|
|
7
7
|
#include "duckdb/function/table/system_functions.hpp"
|
|
8
8
|
#include "duckdb/main/database.hpp"
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
#include "duckdb/common/serializer/buffered_file_writer.hpp"
|
|
10
10
|
#include "duckdb/main/attached_database.hpp"
|
|
11
11
|
#include "duckdb/main/database.hpp"
|
|
12
|
+
#include "duckdb/main/database_manager.hpp"
|
|
12
13
|
|
|
13
14
|
namespace duckdb {
|
|
14
15
|
|
|
@@ -17,6 +18,7 @@ ClientData::ClientData(ClientContext &context) : catalog_search_path(make_unique
|
|
|
17
18
|
profiler = make_shared<QueryProfiler>(context);
|
|
18
19
|
query_profiler_history = make_unique<QueryProfilerHistory>();
|
|
19
20
|
temporary_objects = make_shared<AttachedDatabase>(db, AttachedDatabaseType::TEMP_DATABASE);
|
|
21
|
+
temporary_objects->oid = DatabaseManager::Get(db).ModifyCatalog();
|
|
20
22
|
random_engine = make_unique<RandomEngine>();
|
|
21
23
|
file_opener = make_unique<ClientContextFileOpener>(context);
|
|
22
24
|
temporary_objects->Initialize();
|
|
@@ -32,6 +32,7 @@ AttachedDatabase *DatabaseManager::GetDatabase(ClientContext &context, const str
|
|
|
32
32
|
|
|
33
33
|
void DatabaseManager::AddDatabase(ClientContext &context, unique_ptr<AttachedDatabase> db_instance) {
|
|
34
34
|
auto name = db_instance->GetName();
|
|
35
|
+
db_instance->oid = ModifyCatalog();
|
|
35
36
|
DependencyList dependencies;
|
|
36
37
|
if (default_database.empty()) {
|
|
37
38
|
default_database = name;
|