Commit 4dcae569 authored by mskold@mysql.com's avatar mskold@mysql.com

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

parent 72c473ec
...@@ -1865,6 +1865,11 @@ int Dbtup::interpreterNextLab(Signal* signal, ...@@ -1865,6 +1865,11 @@ int Dbtup::interpreterNextLab(Signal* signal,
} }
else 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); res = (*sqlType.m_cmp)(cs, s1, attrLen, s2, argLen, true);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment