~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/sum.h

  • Committer: Olaf van der Spek
  • Date: 2011-03-28 23:48:44 UTC
  • mto: (2257.1.1 build) (2276.1.2 build)
  • mto: This revision was merged to the branch mainline in revision 2258.
  • Revision ID: olafvdspek@gmail.com-20110328234844-ufirvtasojvjsxoc
Common fwd

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
#include <drizzled/item/bin_string.h>
29
29
#include <drizzled/charset_info.h>
30
30
 
31
 
namespace drizzled {
32
 
 
33
 
int group_concat_key_cmp_with_distinct(void* arg, const void* key1, const void* key2);
34
 
 
35
 
int group_concat_key_cmp_with_order(void* arg, const void* key1, const void* key2);
 
31
namespace drizzled
 
32
{
 
33
 
 
34
int group_concat_key_cmp_with_distinct(void* arg, const void* key1,
 
35
                                       const void* key2);
 
36
 
 
37
int group_concat_key_cmp_with_order(void* arg, const void* key1,
 
38
                                    const void* key2);
 
39
 
 
40
class Select_Lex;
 
41
struct Order;
36
42
 
37
43
/*
38
44
  Class Item_sum is the base class used for special expressions that SQL calls
461
467
 
462
468
/* Common class for SUM(DISTINCT), AVG(DISTINCT) */
463
469
 
 
470
class Unique;
 
471
 
464
472
class Item_sum_distinct :public Item_sum_num
465
473
{
466
474
protected:
568
576
};
569
577
 
570
578
 
 
579
class Tmp_Table_Param;
 
580
 
571
581
class Item_sum_count_distinct :public Item_sum_int
572
582
{
573
583
  Table *table;
634
644
 
635
645
/* Item to get the value of a stored sum function */
636
646
 
 
647
class Item_sum_avg;
 
648
 
637
649
class Item_avg_field :public Item_result_field
638
650
{
639
651
public:
694
706
  }
695
707
};
696
708
 
 
709
class Item_sum_variance;
 
710
 
697
711
class Item_variance_field :public Item_result_field
698
712
{
699
713
public:
785
799
  }
786
800
};
787
801
 
 
802
class Item_sum_std;
 
803
 
788
804
class Item_std_field :public Item_variance_field
789
805
{
790
806
public:
944
960
  Item *copy_or_same(Session* session);
945
961
};
946
962
 
 
963
 
 
964
 
 
965
class DRIZZLE_ERROR;
 
966
 
947
967
class Item_func_group_concat : public Item_sum
948
968
{
949
969
  Tmp_Table_Param *tmp_table_param;