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

MCOL-4721 CHAR(1) is not collation-aware for GROUP/DISTINCT

This commit is contained in:
Alexander Barkov
2021-05-18 11:29:21 +04:00
parent 9a2887748e
commit bd4cbb542d
5 changed files with 61 additions and 60 deletions

View File

@ -372,6 +372,15 @@ inline bool isCharType(const datatypes::SystemCatalog::ColDataType type)
datatypes::SystemCatalog::TEXT == type);
}
inline bool typeHasCollation(const datatypes::SystemCatalog::ColDataType type)
{
return datatypes::SystemCatalog::VARCHAR == type ||
datatypes::SystemCatalog::CHAR == type ||
datatypes::SystemCatalog::TEXT == type;
}
/** convenience function to determine if column type is a
* numeric type
*/