~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

Updated an include guard thanks to a nice catch during code review from Jay. Thanks Jay!

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
 
#include "config.h"
21
 
 
 
20
#include "drizzled/server_includes.h"
 
21
#include CSTDINT_H
22
22
#include "drizzled/function/time/last_day.h"
23
23
#include "drizzled/error.h"
24
24
#include "drizzled/calendar.h"
27
27
#include <sstream>
28
28
#include <string>
29
29
 
30
 
namespace drizzled
31
 
{
32
 
 
33
30
/**
34
31
 * Interpret the first argument as a DateTime string and then populate
35
32
 * our supplied temporal object with a Date representing the last day of 
36
33
 * the corresponding month and year.
37
34
 */
38
 
bool Item_func_last_day::get_temporal(Date &to)
 
35
bool Item_func_last_day::get_temporal(drizzled::Date &to)
39
36
{
40
37
  assert(fixed);
41
38
 
47
44
  }
48
45
 
49
46
  /* We use a DateTime to match as many temporal formats as possible. */
50
 
  DateTime temporal;
 
47
  drizzled::DateTime temporal;
51
48
  Item_result arg0_result_type= args[0]->result_type();
52
49
  
53
50
  switch (arg0_result_type)
128
125
 
129
126
  return true;
130
127
}
131
 
 
132
 
} /* namespace drizzled */