You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-08-07 03:22:57 +03:00
MCOL-4480: TEXT type added for alter table add column (#3221)
This commit is contained in:
@@ -47,6 +47,7 @@ using namespace logging;
|
||||
|
||||
#include "we_messages.h"
|
||||
#include "we_ddlcommandclient.h"
|
||||
#include "we_ddlcommon.h"
|
||||
using namespace WriteEngine;
|
||||
|
||||
#include "oamcache.h"
|
||||
@@ -732,10 +733,13 @@ void AlterTableProcessor::addColumn(uint32_t sessionID, execplan::CalpontSystemC
|
||||
throw std::runtime_error(err);
|
||||
}
|
||||
|
||||
if ((columnDefPtr->fType->fType == CalpontSystemCatalog::CHAR && columnDefPtr->fType->fLength > 8) ||
|
||||
(columnDefPtr->fType->fType == CalpontSystemCatalog::VARCHAR && columnDefPtr->fType->fLength > 7) ||
|
||||
(columnDefPtr->fType->fType == CalpontSystemCatalog::VARBINARY && columnDefPtr->fType->fLength > 7) ||
|
||||
(columnDefPtr->fType->fType == CalpontSystemCatalog::BLOB))
|
||||
int dataType = WriteEngine::convertDataType(columnDefPtr->fType->fType);
|
||||
|
||||
if ((dataType == CalpontSystemCatalog::CHAR && columnDefPtr->fType->fLength > 8) ||
|
||||
(dataType == CalpontSystemCatalog::VARCHAR && columnDefPtr->fType->fLength > 7) ||
|
||||
(dataType == CalpontSystemCatalog::VARBINARY && columnDefPtr->fType->fLength > 7) ||
|
||||
(dataType == CalpontSystemCatalog::TEXT) ||
|
||||
(dataType == CalpontSystemCatalog::BLOB))
|
||||
{
|
||||
isDict = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user