~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/sum.h

  • Committer: Monty Taylor
  • Date: 2009-12-21 08:16:13 UTC
  • mto: (1253.2.3 out-of-tree)
  • mto: This revision was merged to the branch mainline in revision 1250.
  • Revision ID: mordred@inaugust.com-20091221081613-xhpsndup5jrwihtw
Removed global_charset_info.h from server_includes.h

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
 
#ifndef DRIZZLED_SUM_H
21
 
#define DRIZZLED_SUM_H
 
20
#ifndef DRIZZLED_ITEM_SUM_H
 
21
#define DRIZZLED_ITEM_SUM_H
22
22
 
23
23
/* classes for sum functions */
24
24
 
28
28
#include <drizzled/item.h>
29
29
#include <drizzled/item/field.h>
30
30
#include <drizzled/item/bin_string.h>
 
31
#include <mystrings/m_string.h>
31
32
 
32
33
extern "C"
33
34
int group_concat_key_cmp_with_distinct(void* arg, const void* key1,
365
366
    forced_const= true;
366
367
  }
367
368
  virtual bool const_item() const { return forced_const; }
368
 
  void make_field(Send_field *field);
 
369
  void make_field(SendField *field);
369
370
  virtual void print(String *str, enum_query_type query_type);
370
371
  void fix_num_length_and_dec();
371
372
 
662
663
  enum_field_types field_type() const
663
664
  {
664
665
    return hybrid_type == DECIMAL_RESULT ?
665
 
      DRIZZLE_TYPE_NEWDECIMAL : DRIZZLE_TYPE_DOUBLE;
 
666
      DRIZZLE_TYPE_DECIMAL : DRIZZLE_TYPE_DOUBLE;
666
667
  }
667
668
  void fix_length_and_dec() {}
668
669
  enum Item_result result_type () const { return hybrid_type; }
729
730
  enum_field_types field_type() const
730
731
  {
731
732
    return hybrid_type == DECIMAL_RESULT ?
732
 
      DRIZZLE_TYPE_NEWDECIMAL : DRIZZLE_TYPE_DOUBLE;
 
733
      DRIZZLE_TYPE_DECIMAL : DRIZZLE_TYPE_DOUBLE;
733
734
  }
734
735
  void fix_length_and_dec() {}
735
736
  enum Item_result result_type () const { return hybrid_type; }