From 4dcae5694c53632a9ce6edbe5efd2f8380097668 Mon Sep 17 00:00:00 2001 From: "mskold@mysql.com" <> Date: Sat, 5 Feb 2005 15:47:06 +0100 Subject: [PATCH] Fix for bug#8315 NdbScanFilter cmp method only works for strings of exact word boundry length --- ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp b/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp index 9778c938e0f..bc1700c12ad 100644 --- a/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp +++ b/ndb/src/kernel/blocks/dbtup/DbtupExecQuery.cpp @@ -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); }