Commit 91de2afb authored by unknown's avatar unknown

fix endianess on ppc. seems for sys_var_long_ptr we have to fetch

var->save_result.ulonglong_value and not var->save_result.ulong_value

parent b1eaf92c
......@@ -3663,15 +3663,16 @@ sys_var_event_scheduler::update(THD *thd, set_var *var)
DBUG_RETURN(true);
}
if (var->save_result.ulong_value < 1 || var->save_result.ulong_value > 2)
if (var->save_result.ulonglong_value < 1 ||
var->save_result.ulonglong_value > 2)
{
char buf[64];
my_error(ER_WRONG_VALUE_FOR_VAR, MYF(0), "event_scheduler",
llstr(var->save_result.ulong_value, buf));
llstr(var->save_result.ulonglong_value, buf));
DBUG_RETURN(true);
}
if ((res= scheduler->suspend_or_resume(var->save_result.ulong_value == 1?
Event_scheduler::RESUME:
if ((res= scheduler->suspend_or_resume(var->save_result.ulonglong_value == 1?
Event_scheduler::RESUME :
Event_scheduler::SUSPEND)))
my_error(ER_EVENT_SET_VAR_ERROR, MYF(0), (uint) res);
DBUG_RETURN((bool) res);
......
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