~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Monty Taylor
  • Date: 2008-11-18 22:12:56 UTC
  • mto: (589.1.3 devel)
  • mto: This revision was merged to the branch mainline in revision 589.
  • Revision ID: monty@inaugust.com-20081118221256-ap2kmj073pdw7uap
The mega-patch from hell. Renamed sql_class to session (since that's what it is) and removed it and field and table from common_includes. 

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#ifndef DRIZZLED_FUNCTIONS_TIME_DAYOFMONTH_H
21
21
#define DRIZZLED_FUNCTIONS_TIME_DAYOFMONTH_H
22
22
 
 
23
#include <drizzled/functions/func.h>
 
24
#include <drizzled/functions/int.h>
 
25
 
 
26
 
23
27
class Item_func_dayofmonth :public Item_int_func
24
28
{
25
 
public: 
 
29
public:
26
30
  Item_func_dayofmonth(Item *a) :Item_int_func(a) {}
27
31
  int64_t val_int();
28
32
  const char *func_name() const { return "dayofmonth"; }
29
 
  void fix_length_and_dec() 
30
 
  { 
 
33
  void fix_length_and_dec()
 
34
  {
31
35
    decimals=0;
32
36
    max_length=2*MY_CHARSET_BIN_MB_MAXLEN;
33
37
    maybe_null=1;