Commit 13e47c5e authored by unknown's avatar unknown
Browse files

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

parent 65cd36fc
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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);
	}