~drizzle-trunk/drizzle/development

« back to all changes in this revision

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

Merged in latest plugin-slot-reorg.

Show diffs side-by-side

added added

removed removed

Lines of Context:
29
29
  uint32_t period2= (uint32_t)args[1]->val_int();
30
30
 
31
31
  if ((null_value=args[0]->null_value || args[1]->null_value))
32
 
    return 0; /* purecov: inspected */
 
32
    return 0;
33
33
  return (int64_t) (year_month_to_months(period1) -year_month_to_months(period2));
34
34
}