Convert column level to lowercase

This commit is contained in:
Yihao Deng 2024-04-28 12:53:49 +00:00
parent adbf2b5907
commit 9306085ba2
1 changed files with 1 additions and 0 deletions

View File

@ -271,6 +271,7 @@ bool checkColumnCompressOrSetDefault(uint8_t type, char compress[TSDB_CL_COMPRES
}
bool checkColumnLevel(char level[TSDB_CL_COMPRESS_OPTION_LEN]) {
if (0 == strlen(level)) return true;
strtolower(level, level);
if (1 == strlen(level)) {
if ('h' == level[0] || 'm' == level[0] || 'l' == level[0]) return true;
} else {