1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-08-01 06:46:55 +03:00

MCOL-4791 Fix ColumnCommand fudged data type format to clearly identify CHAR vs VARCHAR

This commit is contained in:
Alexander Barkov
2021-07-02 12:42:03 +04:00
parent ceb73cddcd
commit e8126bede5
22 changed files with 228 additions and 318 deletions

View File

@ -524,12 +524,12 @@ inline bool isMinMaxValid(const NewColRequestHeader* in)
switch (in->colType.DataType)
{
case CalpontSystemCatalog::CHAR:
return (in->colType.DataSize < 9);
return !in->colType.isDict();
case CalpontSystemCatalog::VARCHAR:
case CalpontSystemCatalog::BLOB:
case CalpontSystemCatalog::TEXT:
return (in->colType.DataSize < 8);
return !in->colType.isDict();
case CalpontSystemCatalog::TINYINT:
case CalpontSystemCatalog::SMALLINT: