Skip to content

Commit

Permalink
Fix build warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Dtenwolde committed Nov 27, 2024
1 parent 3efbe0b commit 87b96c2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
5 changes: 3 additions & 2 deletions src/include/duckdb/parser/property_graph_table.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,6 @@ class PropertyGraphTable {
PropertyGraphTable(string table_name, string table_alias,
vector<string> column_name, vector<string> label,
string catalog_name = "", string schema = DEFAULT_SCHEMA);
string catalog_name;
string schema_name;
string table_name;
string table_name_alias;

Expand All @@ -40,6 +38,9 @@ class PropertyGraphTable {
vector<string> sub_labels;
string main_label;

string catalog_name;
string schema_name;

//! Associated with the PROPERTIES keyword not mentioned in the creation of table, equalling SELECT * in some sense
bool all_columns = false;

Expand Down
10 changes: 6 additions & 4 deletions src/parser/property_graph_table.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,9 @@ PropertyGraphTable::PropertyGraphTable() = default;

PropertyGraphTable::PropertyGraphTable(string table_name_p, vector<string> column_names_p,
vector<string> labels_p, string catalog_p, string schema_p)
: table_name(std::move(table_name_p)), catalog_name(std::move(catalog_p)), schema_name(std::move(schema_p)),
column_names(std::move(column_names_p)), sub_labels(std::move(labels_p)) {
: table_name(std::move(table_name_p)),
column_names(std::move(column_names_p)), sub_labels(std::move(labels_p)),
catalog_name(std::move(catalog_p)), schema_name(std::move(schema_p)) {

#ifdef DEBUG
for (auto &col_name : column_names) {
Expand All @@ -24,8 +25,9 @@ PropertyGraphTable::PropertyGraphTable(string table_name_p, vector<string> colum

PropertyGraphTable::PropertyGraphTable(string table_name_p, string table_name_alias_p, vector<string> column_names_p,
vector<string> labels_p, string catalog_p, string schema_p)
: table_name(std::move(table_name_p)), catalog_name(std::move(catalog_p)), table_name_alias(std::move(table_name_alias_p)), schema_name(std::move(schema_p)),
column_names(std::move(column_names_p)), sub_labels(std::move(labels_p)) {
: table_name(std::move(table_name_p)), table_name_alias(std::move(table_name_alias_p)),
column_names(std::move(column_names_p)), sub_labels(std::move(labels_p)),
catalog_name(std::move(catalog_p)), schema_name(std::move(schema_p)) {
#ifdef DEBUG
for (auto &col_name : column_names) {
D_ASSERT(!col_name.empty());
Expand Down

0 comments on commit 87b96c2

Please sign in to comment.