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:
@ -464,7 +464,7 @@ Event_queue_element::load_from_row(THD *thd, TABLE *table)
|
||||
DBUG_RETURN(TRUE);
|
||||
|
||||
starts_null= table->field[ET_FIELD_STARTS]->is_null();
|
||||
my_bool not_used= FALSE;
|
||||
uint not_used;
|
||||
if (!starts_null)
|
||||
{
|
||||
table->field[ET_FIELD_STARTS]->get_date(&time, TIME_NO_ZERO_DATE);
|
||||
@ -646,7 +646,7 @@ add_interval(MYSQL_TIME *ltime, const Time_zone *time_zone,
|
||||
if (date_add_interval(ltime, scale, interval))
|
||||
return 0;
|
||||
|
||||
my_bool not_used;
|
||||
uint not_used;
|
||||
return time_zone->TIME_to_gmt_sec(ltime, ¬_used);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user