~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

Blackhole, CSV, Pool of Threads,Single Thread, Multi Thread.

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/period_diff.h"
23
23
#include "drizzled/calendar.h"
24
24
 
25
 
namespace drizzled
26
 
{
27
 
 
28
25
int64_t Item_func_period_diff::val_int()
29
26
{
30
27
  assert(fixed == 1);
35
32
    return 0;
36
33
  return (int64_t) (year_month_to_months(period1) -year_month_to_months(period2));
37
34
}
38
 
 
39
 
} /* namespace drizzled */