Commit cd55dea8 authored by pekka@mysql.com's avatar pekka@mysql.com

ndb - wl#2972 (5.1) omit trigger check post!=pre if recipient is SUMA

parent 18a060e7
...@@ -916,7 +916,8 @@ bool Dbtup::readTriggerInfo(TupTriggerData* const trigPtr, ...@@ -916,7 +916,8 @@ bool Dbtup::readTriggerInfo(TupTriggerData* const trigPtr,
req_struct->m_tuple_ptr= save; req_struct->m_tuple_ptr= save;
ndbrequire(ret != -1); ndbrequire(ret != -1);
noBeforeWords = ret; noBeforeWords = ret;
if ((noAfterWords == noBeforeWords) && if (trigPtr->m_receiverBlock != SUMA &&
(noAfterWords == noBeforeWords) &&
(memcmp(afterBuffer, beforeBuffer, noAfterWords << 2) == 0)) { (memcmp(afterBuffer, beforeBuffer, noAfterWords << 2) == 0)) {
//-------------------------------------------------------------------- //--------------------------------------------------------------------
// Although a trigger was fired it was not necessary since the old // Although a trigger was fired it was not necessary since the old
......
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