~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/time/date.h

Merge Stewart

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 
23
23
#include "drizzled/function/func.h"
24
24
#include "drizzled/function/str/strfunc.h"
25
 
 
26
 
/* forward declarations */
27
 
namespace drizzled {class Date;}
 
25
#include <drizzled/temporal.h>
28
26
 
29
27
/* A function which evaluates to a Date */
30
28
class Item_date :public Item_func
44
42
  {
45
43
    collation.set(&my_charset_bin);
46
44
    decimals=0;
47
 
    max_length=MAX_DATE_WIDTH*MY_CHARSET_BIN_MB_MAXLEN;
 
45
    max_length=drizzled::Date::MAX_STRING_LENGTH*MY_CHARSET_BIN_MB_MAXLEN;
48
46
  }
49
47
  /**
50
48
   * All functions which inherit from Item_date must implement