Update 'src/parser/hsql_parser.cpp'
Fixed compiler error on Ubuntu 18.04
This commit is contained in:
parent
045e48b12b
commit
10bb8d5d93
|
@ -537,8 +537,8 @@ const UpdateExpression HSQLParser::extractUPDATE_impl() const
|
||||||
auto table_name = (update_statement->table != nullptr && update_statement->table->name != nullptr)
|
auto table_name = (update_statement->table != nullptr && update_statement->table->name != nullptr)
|
||||||
? std::make_optional(std::string(update_statement->table->name))
|
? std::make_optional(std::string(update_statement->table->name))
|
||||||
: std::nullopt;
|
: std::nullopt;
|
||||||
|
auto attr = expression::Attribute{update_clause->column, table_name};
|
||||||
updates.push_back(std::make_pair(expression::Attribute{update_clause->column, table_name}, value));
|
updates.push_back(std::make_pair(attr, value));
|
||||||
}
|
}
|
||||||
|
|
||||||
return UpdateExpression{FromExpression{std::move(from)}, std::move(updates), std::move(where)};
|
return UpdateExpression{FromExpression{std::move(from)}, std::move(updates), std::move(where)};
|
||||||
|
|
Loading…
Reference in New Issue