Commit 419e3853 authored by Georgi Kodinov's avatar Georgi Kodinov

Addendum to merge of Bug#52315 to mysql-trunk-merge :

Fixed the failing sys_vars.timestamp_basic.test by 
not re-calculating the value of the system variable at
check time.
parent a16f4eee
...@@ -2388,7 +2388,6 @@ static bool check_timestamp(sys_var *self, THD *thd, set_var *var) ...@@ -2388,7 +2388,6 @@ static bool check_timestamp(sys_var *self, THD *thd, set_var *var)
if (!var->value) if (!var->value)
return FALSE; return FALSE;
var->save_result.ulonglong_value= var->value->val_int();
val= (time_t) var->save_result.ulonglong_value; val= (time_t) var->save_result.ulonglong_value;
if (val < (time_t) MY_TIME_T_MIN || val > (time_t) MY_TIME_T_MAX) if (val < (time_t) MY_TIME_T_MIN || val > (time_t) MY_TIME_T_MAX)
{ {
......
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