1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

Add copy assign operator (-Wdeprecated-copy)

This commit is contained in:
Alexey Antipovsky
2020-11-11 16:19:07 +03:00
parent 4aa7d408e1
commit c896a50a5d
2 changed files with 21 additions and 0 deletions

View File

@ -6121,6 +6121,26 @@ CalpontSystemCatalog::ColType::ColType(const ColType& rhs)
cs = rhs.cs;
}
CalpontSystemCatalog::ColType& CalpontSystemCatalog::ColType::operator=(const ColType& rhs)
{
colWidth = rhs.colWidth;
constraintType = rhs.constraintType;
colDataType = rhs.colDataType;
ddn = rhs.ddn;
defaultValue = rhs.defaultValue;
colPosition = rhs.colPosition;
scale = rhs.scale;
precision = rhs.precision;
compressionType = rhs.compressionType;
columnOID = rhs.columnOID;
autoincrement = rhs.autoincrement;
nextvalue = rhs.nextvalue;
charsetNumber = rhs.charsetNumber;
cs = rhs.cs;
return *this;
}
CHARSET_INFO* CalpontSystemCatalog::ColType::getCharset()
{
if (!cs)