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

MCOL-3536 Collation phase 2

This commit is contained in:
David Hall
2020-06-11 10:10:54 -05:00
parent 171e32a3ff
commit de125bac2b
4 changed files with 115 additions and 130 deletions

View File

@ -95,7 +95,7 @@ std::string Func_rpad::getStrVal(rowgroup::Row& row,
const char* posP = pad->c_str();
// plen = the number of characters in pad
size_t plen = cs->numchars(posP, posP+binPLen);
if (plen == 0 || plen > strLen)
if (plen == 0)
return src;
size_t byteCount = (padLength+1) * cs->mbmaxlen; // absolute maximun number of bytes