Commit 9a094d24 authored by unknown's avatar unknown

bug#18101 - ndb

  handle out of string buffer when creating triggers


storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp:
  Handle out of string buffer memory, while creating triggers
parent 5859b567
......@@ -12142,7 +12142,11 @@ Dbdict::createTrigger_slaveCreate(Signal* signal, OpCreateTriggerPtr opPtr)
// fill in trigger data
{
Rope name(c_rope_pool, triggerPtr.p->triggerName);
ndbrequire(name.assign(opPtr.p->m_triggerName));
if(!name.assign(opPtr.p->m_triggerName))
{
opPtr.p->m_errorCode = (CreateTrigRef::ErrorCode)CreateTableRef::OutOfStringBuffer;
return;
}
}
triggerPtr.p->triggerId = triggerId;
triggerPtr.p->tableId = req->getTableId();
......
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