~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Padraig O'Sullivan
  • Date: 2009-08-08 04:22:33 UTC
  • mto: (1115.3.4 captain)
  • mto: This revision was merged to the branch mainline in revision 1117.
  • Revision ID: osullivan.padraig@gmail.com-20090808042233-q0z88zc490z3f3r7
Renamed the Command class to be Statement. Renamed the command directory to
statement and also the command header file to statement. Updated various
source files to reflect this renaming.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
#include "drizzled/function/str/strfunc.h"
25
25
#include <drizzled/temporal.h>
26
26
 
27
 
namespace drizzled
28
 
{
29
 
 
30
27
/* A function which evaluates to a Date */
31
28
class Item_date :public Item_func
32
29
{
45
42
  {
46
43
    collation.set(&my_charset_bin);
47
44
    decimals=0;
48
 
    max_length=Date::MAX_STRING_LENGTH*MY_CHARSET_BIN_MB_MAXLEN;
 
45
    max_length=drizzled::Date::MAX_STRING_LENGTH*MY_CHARSET_BIN_MB_MAXLEN;
49
46
  }
50
47
  /**
51
48
   * All functions which inherit from Item_date must implement
52
49
   * their own get_temporal() method, which takes a supplied
53
 
   * Date reference and populates it with a correct
 
50
   * drizzled::Date reference and populates it with a correct
54
51
   * date based on the semantics of the function.
55
52
   *
56
53
   * Returns whether the function was able to correctly fill
57
54
   * the supplied date temporal with a proper date.
58
55
   *
59
 
   * @param Reference to a Date to populate
 
56
   * @param Reference to a drizzled::Date to populate
60
57
   */
61
 
  virtual bool get_temporal(Date &temporal)= 0;
 
58
  virtual bool get_temporal(drizzled::Date &temporal)= 0;
62
59
  Field *tmp_table_field(Table *table)
63
60
  {
64
61
    return tmp_table_field_from_field_type(table, 0);
104
101
  }
105
102
};
106
103
 
107
 
} /* namespace drizzled */
108
 
 
109
104
#endif /* DRIZZLED_FUNCTION_TIME_DATE_H */