Update 'src/parser/hsql_parser.cpp'

Fixed compiler error on Ubuntu 18.04
This commit is contained in:
Jan Mühlig 2020-04-29 10:24:33 +02:00
parent 045e48b12b
commit 10bb8d5d93
1 changed files with 2 additions and 2 deletions

View File

@ -537,8 +537,8 @@ const UpdateExpression HSQLParser::extractUPDATE_impl() const
auto table_name = (update_statement->table != nullptr && update_statement->table->name != nullptr)
? std::make_optional(std::string(update_statement->table->name))
: std::nullopt;
updates.push_back(std::make_pair(expression::Attribute{update_clause->column, table_name}, value));
auto attr = expression::Attribute{update_clause->column, table_name};
updates.push_back(std::make_pair(attr, value));
}
return UpdateExpression{FromExpression{std::move(from)}, std::move(updates), std::move(where)};