From 62e7f1cae96c6f9f1c65bb19209776174549a352 Mon Sep 17 00:00:00 2001 From: unknown <joreland@mysql.com> Date: Wed, 1 Dec 2004 10:04:49 +0100 Subject: [PATCH] bug#6871 - ndb replace with charsets check update of primary key wo/ normalizing ndb/src/kernel/blocks/dbtup/DbtupRoutines.cpp: Make sure tXfrmFlag is false when checking for update of primary key --- ndb/src/kernel/blocks/dbtup/DbtupRoutines.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ndb/src/kernel/blocks/dbtup/DbtupRoutines.cpp b/ndb/src/kernel/blocks/dbtup/DbtupRoutines.cpp index e6cc6f68842..cbb165c3eb1 100644 --- a/ndb/src/kernel/blocks/dbtup/DbtupRoutines.cpp +++ b/ndb/src/kernel/blocks/dbtup/DbtupRoutines.cpp @@ -706,7 +706,10 @@ Dbtup::checkUpdateOfPrimaryKey(Uint32* updateBuffer, Tablerec* const regTabPtr) tOutBufIndex = 0; tMaxRead = MAX_KEY_SIZE_IN_WORDS; + bool tmp = tXfrmFlag; + tXfrmFlag = false; ndbrequire((this->*f)(&keyReadBuffer[0], ahOut, attrDescriptor, attributeOffset)); + tXfrmFlag = tmp; ndbrequire(tOutBufIndex == ahOut->getDataSize()); if (ahIn.getDataSize() != ahOut->getDataSize()) { ljam(); -- 2.30.9