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

MCOL-5437 Fixes to follow the charset_info api change introduced by MDEV-30661

This commit is contained in:
Roman Nozdrin
2023-02-24 14:29:26 +00:00
committed by Gagan Goel
parent 3364ceb2f0
commit e6e74c0be7
2 changed files with 9 additions and 1 deletions

View File

@ -53,7 +53,11 @@ std::string Func_lcase::getStrVal(rowgroup::Row& row, FunctionParm& fp, bool& is
CHARSET_INFO* cs = colType.getCharset();
uint64_t inLen = tstr.length();
#if MYSQL_VERSION_ID >= 101004
uint64_t bufLen = inLen * cs->casedn_multiply();
#else
uint64_t bufLen = inLen * cs->casedn_multiply;
#endif
char* outBuf = new char[bufLen];
uint64_t outLen = cs->casedn(tstr.str(), inLen, outBuf, bufLen);