~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item_sum.cc

  • Committer: Monty Taylor
  • Date: 2008-11-15 18:39:51 UTC
  • mto: (584.1.7 devel)
  • mto: This revision was merged to the branch mainline in revision 588.
  • Revision ID: monty@inaugust.com-20081115183951-jo2v3abwdu24lnwq
Split out hybrid_type_traits.

Show diffs side-by-side

added added

removed removed

Lines of Context:
23
23
#include <drizzled/server_includes.h>
24
24
#include <drizzled/sql_select.h>
25
25
#include <drizzled/error.h>
 
26
#include <drizzled/hybrid_type_traits.h>
 
27
#include <drizzled/hybrid_type_traits_integer.h>
 
28
#include <drizzled/hybrid_type_traits_decimal.h>
 
29
 
 
30
 
26
31
#include CMATH_H
27
32
 
28
33
#if defined(CMATH_NAMESPACE)
939
944
  return &fast_decimal_traits_instance;
940
945
}
941
946
 
 
947
 
942
948
void Item_sum_distinct::fix_length_and_dec()
943
949
{
944
950
  assert(args[0]->fixed);
980
986
}
981
987
 
982
988
 
 
989
enum Item_result Item_sum_distinct::result_type () const
 
990
{
 
991
  return val.traits->type();
 
992
}
 
993
 
 
994
 
983
995
/**
984
996
  @todo
985
997
  check that the case of CHAR(0) works OK