Revert "Merge pull request #5139 from abyss7/fix-self-move" (#5150)

This reverts commit bd1f8fe97a, reversing
changes made to 5d1091bfee.
This commit is contained in:
Ivan 2019-04-29 23:33:26 +03:00 committed by GitHub
parent 2e7f3f6e17
commit 6291c4098f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -38,6 +38,7 @@ public:
ColumnsDescription(const ColumnsDescription & other);
ColumnsDescription & operator=(const ColumnsDescription & other);
ColumnsDescription(ColumnsDescription &&) noexcept = default;
ColumnsDescription & operator=(ColumnsDescription &&) noexcept = default;
/// `after_column` can be a Nested column name;
void add(ColumnDescription column, const String & after_column = String());

View File

@ -28,7 +28,7 @@ void ITableDeclaration::setColumns(ColumnsDescription columns_)
{
if (columns_.getOrdinary().empty())
throw Exception("Empty list of columns passed", ErrorCodes::EMPTY_LIST_OF_COLUMNS_PASSED);
columns = columns_;
columns = std::move(columns_);
}
void ITableDeclaration::setIndicesDescription(IndicesDescription indices_)