~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/functions/min_max.cc

  • Committer: Brian Aker
  • Date: 2008-10-29 13:46:43 UTC
  • Revision ID: brian@tangent.org-20081029134643-z6jcwjvyruhk2vlu
Updates for ignore file.

Show diffs side-by-side

added added

removed removed

Lines of Context:
20
20
#include <drizzled/server_includes.h>
21
21
#include CSTDINT_H
22
22
#include <drizzled/functions/min_max.h>
23
 
#include <drizzled/item/cmpfunc.h>
24
23
 
25
24
void Item_func_min_max::fix_length_and_dec()
26
25
{
101
100
  if (value)
102
101
  {
103
102
    *value= min_max;
104
 
    if (datetime_item->field_type() == DRIZZLE_TYPE_DATE)
 
103
    if (datetime_item->field_type() == DRIZZLE_TYPE_NEWDATE)
105
104
      *value/= 1000000L;
106
105
  }
107
106
  return min_max_idx;