MySQL Lists are EOL. Please join:

List:Commits« Previous MessageNext Message »
From:jonas Date:March 9 2006 10:05am
Subject:bk commit into 5.1 tree (jonas:1.2154) BUG#18101
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of jonas. When jonas does a push these changes will
be propagated to the main repository and, within 24 hours after the
push, to the public repository.
For information on how to access the public repository
see http://dev.mysql.com/doc/mysql/en/installing-source-tree.html

ChangeSet
  1.2154 06/03/09 11:05:26 jonas@stripped +1 -0
  bug#18101 - ndb
    handle out of string buffer when creating triggers

  storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp
    1.81 06/03/09 11:05:23 jonas@stripped +5 -1
    Handle out of string buffer memory, while creating triggers

# This is a BitKeeper patch.  What follows are the unified diffs for the
# set of deltas contained in the patch.  The rest of the patch, the part
# that BitKeeper cares about, is below these diffs.
# User:	jonas
# Host:	perch.ndb.mysql.com
# Root:	/home/jonas/src/mysql-5.1-new

--- 1.80/storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp	2006-02-20 08:40:20 +01:00
+++ 1.81/storage/ndb/src/kernel/blocks/dbdict/Dbdict.cpp	2006-03-09 11:05:23 +01:00
@@ -12142,7 +12142,11 @@
   // 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();
Thread
bk commit into 5.1 tree (jonas:1.2154) BUG#18101jonas9 Mar