mirror of
https://github.com/MariaDB/server.git
synced 2025-01-18 13:02:28 +01:00
Fix for bug#8315 NdbScanFilter cmp method only works for strings of exact word boundry length
This commit is contained in:
parent
72c473ec58
commit
4dcae5694c
1 changed files with 5 additions and 0 deletions
|
@ -1865,6 +1865,11 @@ int Dbtup::interpreterNextLab(Signal* signal,
|
|||
}
|
||||
else
|
||||
{
|
||||
/* --------------------------------------------------------- */
|
||||
// If length of argument rounded to nearest word is
|
||||
// the same as attribute size, use that as argument size
|
||||
/* --------------------------------------------------------- */
|
||||
if ((((argLen + 3) >> 2) << 2) == attrLen) argLen= attrLen;
|
||||
res = (*sqlType.m_cmp)(cs, s1, attrLen, s2, argLen, true);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue