mirror of
https://github.com/MariaDB/server.git
synced 2026-01-06 05:22:24 +03:00
WL#2985 "Partition pruning", postreview fixes: Small code fixes and better comments
This commit is contained in:
@@ -885,6 +885,21 @@ longlong Item_func_to_days::val_int()
|
||||
return (longlong) calc_daynr(ltime.year,ltime.month,ltime.day);
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Get information about this Item tree monotonicity
|
||||
|
||||
SYNOPSIS
|
||||
Item_func_to_days::get_monotonicity_info()
|
||||
|
||||
DESCRIPTION
|
||||
Get information about monotonicity of the function represented by this item
|
||||
tree.
|
||||
|
||||
RETURN
|
||||
See enum_monotonicity_info.
|
||||
*/
|
||||
|
||||
enum_monotonicity_info Item_func_to_days::get_monotonicity_info() const
|
||||
{
|
||||
if (args[0]->type() == Item::FIELD_ITEM)
|
||||
@@ -1080,6 +1095,21 @@ longlong Item_func_year::val_int()
|
||||
return (longlong) ltime.year;
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
Get information about this Item tree monotonicity
|
||||
|
||||
SYNOPSIS
|
||||
Item_func_to_days::get_monotonicity_info()
|
||||
|
||||
DESCRIPTION
|
||||
Get information about monotonicity of the function represented by this item
|
||||
tree.
|
||||
|
||||
RETURN
|
||||
See enum_monotonicity_info.
|
||||
*/
|
||||
|
||||
enum_monotonicity_info Item_func_year::get_monotonicity_info() const
|
||||
{
|
||||
if (args[0]->type() == Item::FIELD_ITEM &&
|
||||
|
||||
Reference in New Issue
Block a user