~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/min_max.h

  • Committer: Brian Aker
  • Date: 2009-12-06 01:55:53 UTC
  • mfrom: (1238.1.5 push)
  • Revision ID: brian@gaz-20091206015553-cva833q4gvwj11ob
Bundle for staging.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* -*- mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; -*-
2
2
 *  vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
3
3
 *
4
 
 *  Copyright (C) 2008 Sun Microsystems, Inc.
 
4
 *  Copyright (C) 2008 Sun Microsystems
5
5
 *
6
6
 *  This program is free software; you can redistribute it and/or modify
7
7
 *  it under the terms of the GNU General Public License as published by
22
22
 
23
23
#include <drizzled/function/func.h>
24
24
 
25
 
namespace drizzled
26
 
{
27
 
 
28
25
class Item_func_min_max :public Item_func
29
26
{
30
27
  Item_result cmp_type;
44
41
  double val_real();
45
42
  int64_t val_int();
46
43
  String *val_str(String *);
47
 
  type::Decimal *val_decimal(type::Decimal *);
 
44
  my_decimal *val_decimal(my_decimal *);
48
45
  void fix_length_and_dec();
49
46
  enum Item_result result_type () const { return cmp_type; }
50
47
  bool result_as_int64_t() { return compare_as_dates; };
66
63
  const char *func_name() const { return "greatest"; }
67
64
};
68
65
 
69
 
} /* namespace drizzled */
70
 
 
71
66
#endif /* DRIZZLED_FUNCTION_MIN_MAX_H */