~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • Committer: Brian Aker
  • Date: 2009-10-07 16:55:53 UTC
  • mfrom: (1161.2.1 bug444827)
  • Revision ID: brian@gaz-20091007165553-9tnp7liw1k9g6gvc
Merge Padraig

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
22
22
 
23
23
#include "drizzled/function/time/date.h"
24
24
 
25
 
namespace drizzled
26
 
{
27
 
 
28
25
/* forward declarations */
29
 
class Date;
 
26
namespace drizzled {class Date;}
30
27
 
31
28
class Item_func_last_day :public Item_date
32
29
{
36
33
  /**
37
34
   * All functions which inherit from Item_date must implement
38
35
   * their own get_temporal() method, which takes a supplied
39
 
   * Date reference and populates it with a correct
 
36
   * drizzled::Date reference and populates it with a correct
40
37
   * date based on the semantics of the function.
41
38
   *
42
39
   * For LAST_DATE(), we interpret the function's argument
49
46
   * For a NULL parameter, we return false and set null_value
50
47
   * to true.
51
48
   *
52
 
   * @param Reference to a Date to populate
 
49
   * @param Reference to a drizzled::Date to populate
53
50
   */
54
 
  bool get_temporal(Date &temporal);
 
51
  bool get_temporal(drizzled::Date &temporal);
55
52
};
56
53
 
57
 
} /* namespace drizzled */
58
 
 
59
54
#endif /* DRIZZLED_FUNCTION_TIME_LAST_DAY_H */