~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/functions/time/year.h

  • Committer: Monty Taylor
  • Date: 2008-11-16 23:47:43 UTC
  • mto: (584.1.10 devel)
  • mto: This revision was merged to the branch mainline in revision 589.
  • Revision ID: monty@inaugust.com-20081116234743-c38gmv0pa2kdefaj
BrokeĀ outĀ cached_item.

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#ifndef DRIZZLED_FUNCTION_TIME_YEAR_H
21
 
#define DRIZZLED_FUNCTION_TIME_YEAR_H
22
 
 
23
 
#include <drizzled/function/math/int.h>
24
 
 
25
 
namespace drizzled
26
 
{
27
 
 
28
 
class Item_func_year :public Item_int_func
 
20
#ifndef DRIZZLED_FUNCTIONS_TIME_YEAR_H
 
21
#define DRIZZLED_FUNCTIONS_TIME_YEAR_H
 
22
 
 
23
class Item_func_year :public Item_int_func 
29
24
{
30
25
public:
31
26
  Item_func_year(Item *a) :Item_int_func(a) {}
32
27
  int64_t val_int();
33
28
  const char *func_name() const { return "year"; }
 
29
  enum_monotonicity_info get_monotonicity_info() const;
34
30
  int64_t val_int_endpoint(bool left_endp, bool *incl_endp);
35
31
  void fix_length_and_dec()
36
32
  {
40
36
  }
41
37
};
42
38
 
43
 
} /* namespace drizzled */
44
 
 
45
 
#endif /* DRIZZLED_FUNCTION_TIME_YEAR_H */
 
39
#endif /* DRIZZLED_FUNCTIONS_TIME_YEAR_H */