Commit 597dcbda authored by Alexander Barkov's avatar Alexander Barkov

Fixing a "safe" bug in MDEV-16928 (revealed by the Windows compiler)

The bug did not affect behaviour in any way though :)
parent c45050d2
......@@ -5104,7 +5104,7 @@ int Field_timestamp::store(longlong nr, bool unsigned_val)
int error;
ErrConvInteger str(nr, unsigned_val);
THD *thd= get_thd();
Datetime dt(&error, nr, sql_mode_for_timestamp(thd));
Datetime dt(&error, nr, unsigned_val, sql_mode_for_timestamp(thd));
return store_TIME_with_warning(thd, &dt, &str, error);
}
......@@ -5590,7 +5590,7 @@ int Field_temporal_with_date::store(longlong nr, bool unsigned_val)
{
int error;
ErrConvInteger str(nr, unsigned_val);
Datetime dt(&error, nr, sql_mode_for_dates(get_thd()));
Datetime dt(&error, nr, unsigned_val, sql_mode_for_dates(get_thd()));
return store_TIME_with_warning(&dt, &str, error);
}
......
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