summaryrefslogtreecommitdiff
path: root/sql/sql_time.cc
diff options
context:
space:
mode:
authorAlexander Barkov <bar@mariadb.com>2018-09-25 10:07:45 +0400
committerAlexander Barkov <bar@mariadb.com>2018-09-25 10:07:45 +0400
commit25ad38abe5b3fb6bb2aafff315de256b8f1e7839 (patch)
tree1157a03398b5f0716a55d36bbe4004d5a7ec5a48 /sql/sql_time.cc
parent50003a9508f53cbaf6ad46ad071ff48f830ad389 (diff)
downloadmariadb-git-25ad38abe5b3fb6bb2aafff315de256b8f1e7839.tar.gz
MDEV-17288 Replace Item_func::get_arg0_date() to Date/Datetime methods
Diffstat (limited to 'sql/sql_time.cc')
-rw-r--r--sql/sql_time.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_time.cc b/sql/sql_time.cc
index ee56022a868..c3e1b7c28f4 100644
--- a/sql/sql_time.cc
+++ b/sql/sql_time.cc
@@ -175,7 +175,7 @@ int calc_weekday(long daynr,bool sunday_first_day_of_week)
next week is week 1.
*/
-uint calc_week(MYSQL_TIME *l_time, uint week_behaviour, uint *year)
+uint calc_week(const MYSQL_TIME *l_time, uint week_behaviour, uint *year)
{
uint days;
ulong daynr=calc_daynr(l_time->year,l_time->month,l_time->day);