List:Commits« Previous MessageNext Message »
From:ahristov Date:February 7 2006 6:37pm
Subject:bk commit into 5.1 tree (andrey:1.2083)
View as plain text  
Below is the list of changes that have just been committed into a local
5.1 repository of andrey. When andrey 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.2083 06/02/07 19:37:26 andrey@lmy004. +2 -0
  Merge ahristov@stripped:/home/bk/mysql-5.1-new
  into lmy004.:/work/mysql-5.1-events_i_s

  sql/sql_parse.cc
    1.518 06/02/07 19:37:22 andrey@lmy004. +0 -0
    Auto merged

  sql/event_timed.cc
    1.25 06/02/07 19:37:22 andrey@lmy004. +0 -0
    Auto merged

# 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:	andrey
# Host:	lmy004.
# Root:	/work/mysql-5.1-events_i_s/RESYNC

--- 1.517/sql/sql_parse.cc	2006-02-04 10:06:09 +01:00
+++ 1.518/sql/sql_parse.cc	2006-02-07 19:37:22 +01:00
@@ -3743,6 +3743,8 @@
         res= evex_drop_event(thd, lex->et, lex->drop_if_exists, &rows_affected);
       default:;
       }
+      DBUG_PRINT("info", ("CREATE/ALTER/DROP returned error code=%d af_rows=%d",
+                  res, rows_affected));
       if (!res)
         send_ok(thd, rows_affected);
 

--- 1.24/sql/event_timed.cc	2006-01-30 17:54:11 +01:00
+++ 1.25/sql/event_timed.cc	2006-02-07 19:37:22 +01:00
@@ -877,20 +877,10 @@
 event_timed::drop(THD *thd)
 {
   TABLE *table;
-  int ret= 0;
+  uint tmp= 0;
   DBUG_ENTER("event_timed::drop");
 
-  if (evex_open_event_table(thd, TL_WRITE, &table))
-    DBUG_RETURN(-1);
-
-  if (evex_db_find_event_aux(thd, dbname, name, definer, table))
-    DBUG_RETURN(-2);
-
-  if ((ret= table->file->ha_delete_row(table->record[0])))
-    DBUG_RETURN(ret);
-    
-  close_thread_tables(thd);
-  DBUG_RETURN(0);
+  DBUG_RETURN(db_drop_event(thd, this, false, &tmp));
 }
 
 
Thread
bk commit into 5.1 tree (andrey:1.2083)ahristov7 Feb