Fix for bug#8315 NdbScanFilter cmp method only works for strings of exact word boundry length

This commit is contained in:
mskold@mysql.com 2005-02-05 15:47:06 +01:00
parent 72c473ec58
commit 4dcae5694c

View file

@ -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);
}