mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge 10.4 into 10.5
This commit is contained in:
@ -1887,6 +1887,10 @@ protected:
|
||||
{
|
||||
return (ulong) ::calc_daynr((uint) year, (uint) month, (uint) day);
|
||||
}
|
||||
int weekday(bool sunday_first_day_of_week) const
|
||||
{
|
||||
return ::calc_weekday(daynr(), sunday_first_day_of_week);
|
||||
}
|
||||
ulong dayofyear() const
|
||||
{
|
||||
return (ulong) (daynr() - ::calc_daynr(year, 1, 1) + 1);
|
||||
@ -2267,6 +2271,11 @@ public:
|
||||
DBUG_ASSERT(is_valid_datetime_slow());
|
||||
return Temporal_with_date::daynr();
|
||||
}
|
||||
int weekday(bool sunday_first_day_of_week) const
|
||||
{
|
||||
DBUG_ASSERT(is_valid_datetime_slow());
|
||||
return Temporal_with_date::weekday(sunday_first_day_of_week);
|
||||
}
|
||||
ulong dayofyear() const
|
||||
{
|
||||
DBUG_ASSERT(is_valid_datetime_slow());
|
||||
|
Reference in New Issue
Block a user