Skip to content

Commit

Permalink
corrections for centos7
Browse files Browse the repository at this point in the history
  • Loading branch information
franku authored and pstorz committed Jan 31, 2020
1 parent ad10c97 commit 98beba9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/src/dird/dbconvert/database_column_descriptions.cc
Expand Up @@ -41,8 +41,8 @@ void DatabaseColumnDescriptions::SelectTableDescriptions(
throw std::runtime_error(err);
}
std::sort(column_descriptions.begin(), column_descriptions.end(),
[](std::unique_ptr<ColumnDescription>& v1,
std::unique_ptr<ColumnDescription>& v2) {
[](const std::unique_ptr<ColumnDescription>& v1,
const std::unique_ptr<ColumnDescription>& v2) {
return v1->column_name < v2->column_name;
});
}
Expand Down
2 changes: 1 addition & 1 deletion core/src/dird/dbconvert/database_export_postgresql.cc
Expand Up @@ -214,7 +214,7 @@ void DatabaseExportPostgresql::CompareRow(const RowData& data)

std::string query{"FETCH NEXT FROM curs1"};

RowData& rd{const_cast<RowData&>(data)};
RowData& rd(const_cast<RowData&>(data));

if (!db_->SqlQuery(query.c_str(), ResultHandlerCompare, &rd)) {
std::string err{
Expand Down

0 comments on commit 98beba9

Please sign in to comment.