mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
revert a suggested "optimization" that introduced a bug
compilation error in mysys/my_getsystime.c fixed some redundant code removed sec_to_time, time_to_sec, from_unixtime, unix_timestamp, @@timestamp now use decimal, not double for numbers with a fractional part. purge_master_logs_before_date() fixed many bugs in corner cases fixed mysys/my_getsystime.c: compilation failure fixed sql/sql_parse.cc: don't cut corners. it backfires.
This commit is contained in:
@ -2332,11 +2332,7 @@ mysql_execute_command(THD *thd)
|
||||
goto error;
|
||||
}
|
||||
it= new Item_func_unix_timestamp(it);
|
||||
/*
|
||||
it is OK only emulate fix_fieds, because we need only
|
||||
value of constant
|
||||
*/
|
||||
it->quick_fix_field();
|
||||
it->fix_fields(thd, &it);
|
||||
res = purge_master_logs_before_date(thd, (ulong)it->val_int());
|
||||
break;
|
||||
}
|
||||
|
Reference in New Issue
Block a user