1
0
mirror of https://github.com/mariadb-corporation/mariadb-columnstore-engine.git synced 2025-07-29 08:21:15 +03:00

MCOL-4454 "ORDER BY BINARY a" is not like in InnoDB

This commit is contained in:
Alexander Barkov
2021-01-12 12:26:19 +04:00
parent bedb2849fc
commit 09f937693f

View File

@ -336,14 +336,7 @@ int StringCompare::operator()(IdbCompare* l, Row::Pointer r1, Row::Pointer r2)
if (!cs)
cs = l->rowGroup()->getCharset(fSpec.fIndex);
if (cs->state & MY_CS_BINSORT)
{
ret = fSpec.fAsc * strncmp(s1, s2, max(len1,len2));
}
else
{
ret = fSpec.fAsc * cs->strnncoll(s1, len1, s2, len2);
}
ret = fSpec.fAsc * cs->strnncollsp(s1, len1, s2, len2);
}
return ret;