Commit 57a20557 authored by unknown's avatar unknown

Another post-merge fix.


sql/events.cc:
  Fix a bug I introduced with the merge: dbchanged is read
  even if it's not passed to sp_use_new_db.
parent 71e84df0
...@@ -600,7 +600,7 @@ db_create_event(THD *thd, Event_timed *et, my_bool create_if_not, ...@@ -600,7 +600,7 @@ db_create_event(THD *thd, Event_timed *et, my_bool create_if_not,
TABLE *table; TABLE *table;
char old_db_buf[NAME_LEN+1]; char old_db_buf[NAME_LEN+1];
LEX_STRING old_db= { old_db_buf, sizeof(old_db_buf) }; LEX_STRING old_db= { old_db_buf, sizeof(old_db_buf) };
bool dbchanged; bool dbchanged= FALSE;
DBUG_ENTER("db_create_event"); DBUG_ENTER("db_create_event");
DBUG_PRINT("enter", ("name: %.*s", et->name.length, et->name.str)); DBUG_PRINT("enter", ("name: %.*s", et->name.length, et->name.str));
......
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