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.2105 06/02/15 12:14:23 andrey@lmy004. +1 -0
cosmetic changes of the fix for bug#17289 (no privileges checks in EVENTS), before push
sql/event_executor.cc
1.28 06/02/15 12:14:15 andrey@lmy004. +6 -9
cosmetic changes of the fix for bug#17289, before push
# 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-bug17289
--- 1.27/sql/event_executor.cc 2006-02-14 23:35:10 +01:00
+++ 1.28/sql/event_executor.cc 2006-02-15 12:14:15 +01:00
@@ -638,18 +638,18 @@ event_executor_worker(void *event_void)
{
int ret;
- sql_print_information(" EVEX EXECUTING event %s.%s [EXPR:%d]",
+ sql_print_information("SCHEDULER: Executing event %s.%s [EXPR:%d]",
event->dbname.str, event->name.str,(int) event->expression);
ret= event->execute(thd, &worker_mem_root);
- sql_print_information(" EVEX EXECUTED event %s.%s [EXPR:%d]. RetCode=%d",
+ evex_print_warnings(thd, event);
+ sql_print_information("SCHEDULER: Executed event %s.%s [EXPR:%d]. RetCode=%d",
event->dbname.str, event->name.str,
(int) event->expression, ret);
if (ret == EVEX_COMPILE_ERROR)
- sql_print_information(" EVEX COMPILE ERROR for event %s.%s",
+ sql_print_information("SCHEDULER: COMPILE ERROR for event %s.%s",
event->dbname.str, event->name.str);
- evex_print_warnings(thd, event);
}
if ((event->flags & EVENT_EXEC_NO_MORE) ||
event->status==MYSQL_EVENT_DISABLED)
{
@@ -837,6 +837,7 @@ sys_var_event_executor::update(THD *thd,
DBUG_RETURN(0);
}
+
extern LEX_STRING warning_level_names[];
typedef void (*sql_print_xxx_func)(const char *format, ...);
@@ -847,6 +848,7 @@ static sql_print_xxx_func sql_print_xxx_
sql_print_error
};
+
/*
Prints the stack of infos, warnings, errors from thd to
the console so it can be fetched by the logs-into-tables and
@@ -892,15 +894,10 @@ evex_print_warnings(THD *thd, event_time
}
err_msg.append(prefix);
- err_msg.append('[');
- err_msg.append(warning_level_names[err->level].str,
- warning_level_names[err->level].length, system_charset_info);
- err_msg.append("] [");
err_msg.append(err->msg, strlen(err->msg), system_charset_info);
err_msg.append("]");
DBUG_ASSERT(err->level < 3);
(sql_print_xxx_handlers[err->level])("%*s", err_msg.length(), err_msg.c_ptr());
-// sql_print_information("%*s", err_msg.length(), err_msg.c_ptr());
}
| Thread |
|---|
| • bk commit into 5.1 tree (andrey:1.2105) BUG#17289 | ahristov | 15 Feb |