You've already forked mariadb-columnstore-engine
mirror of
https://github.com/mariadb-corporation/mariadb-columnstore-engine.git
synced 2025-07-30 19:23:07 +03:00
MCOL-4454 "ORDER BY BINARY a" is not like in InnoDB
This commit is contained in:
@ -336,14 +336,7 @@ int StringCompare::operator()(IdbCompare* l, Row::Pointer r1, Row::Pointer r2)
|
|||||||
if (!cs)
|
if (!cs)
|
||||||
cs = l->rowGroup()->getCharset(fSpec.fIndex);
|
cs = l->rowGroup()->getCharset(fSpec.fIndex);
|
||||||
|
|
||||||
if (cs->state & MY_CS_BINSORT)
|
ret = fSpec.fAsc * cs->strnncollsp(s1, len1, s2, len2);
|
||||||
{
|
|
||||||
ret = fSpec.fAsc * strncmp(s1, s2, max(len1,len2));
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
ret = fSpec.fAsc * cs->strnncoll(s1, len1, s2, len2);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return ret;
|
return ret;
|
||||||
|
Reference in New Issue
Block a user