1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-30 19:23:07 +03:00

MCOL-1228 Allow alter table for TEXT/BLOB

CHANGE COLUMN was blocked for TEXT and BLOB types. This fix applies to
things like TINYTEXT as well as the only difference internally is the
column width.
This commit is contained in:
Andrew Hutchings
2018-02-24 08:04:17 -05:00
parent ae4bb95753
commit 8f1136474f

View File

@ -174,7 +174,10 @@ bool typesAreSame(const CalpontSystemCatalog::ColType& colType, const ColumnType
case (CalpontSystemCatalog::CLOB): case (CalpontSystemCatalog::CLOB):
break; break;
case (CalpontSystemCatalog::BLOB): case (CalpontSystemCatalog::BLOB):
if (newType.fType == DDL_BLOB && colType.colWidth == newType.fLength) return true;
break;
case (CalpontSystemCatalog::TEXT): case (CalpontSystemCatalog::TEXT):
if (newType.fType == DDL_TEXT && colType.colWidth == newType.fLength) return true;
break; break;
default: default:
break; break;