You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
Add copy assign operator (-Wdeprecated-copy)
This commit is contained in:
@ -6121,6 +6121,26 @@ CalpontSystemCatalog::ColType::ColType(const ColType& rhs)
|
|||||||
cs = rhs.cs;
|
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()
|
CHARSET_INFO* CalpontSystemCatalog::ColType::getCharset()
|
||||||
{
|
{
|
||||||
if (!cs)
|
if (!cs)
|
||||||
|
@ -301,6 +301,7 @@ public:
|
|||||||
const CHARSET_INFO* cs;
|
const CHARSET_INFO* cs;
|
||||||
|
|
||||||
ColType(const ColType& rhs);
|
ColType(const ColType& rhs);
|
||||||
|
ColType& operator=(const ColType& rhs);
|
||||||
|
|
||||||
CHARSET_INFO* getCharset();
|
CHARSET_INFO* getCharset();
|
||||||
// for F&E use. only serialize necessary info for now
|
// for F&E use. only serialize necessary info for now
|
||||||
|
Reference in New Issue
Block a user