~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

  • 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:
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/temporal.h"
23
23
#include "drizzled/error.h"
24
24
#include "drizzled/function/time/quarter.h"
25
25
 
26
 
namespace drizzled
27
 
{
28
 
 
29
26
int64_t Item_func_quarter::val_int()
30
27
{
31
28
  assert(fixed);
38
35
  }
39
36
 
40
37
  /* Grab the first argument as a DateTime object */
41
 
  DateTime temporal;
 
38
  drizzled::DateTime temporal;
42
39
  Item_result arg0_result_type= args[0]->result_type();
43
40
  
44
41
  switch (arg0_result_type)
91
88
  }
92
89
  return (int64_t) ((temporal.months() + 2) / 3);
93
90
}
94
 
 
95
 
} /* namespace drizzled */