~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/sum.h

  • Committer: Lee Bieber
  • Date: 2011-03-29 22:31:41 UTC
  • mfrom: (2257.1.3 build)
  • Revision ID: kalebral@gmail.com-20110329223141-yxc22h3l2he58sk0
Merge Andrew - 743842: Build failure using GCC 4.6
Merge Stewart - 738022: CachedDirectory silently fails to add entries if stat() fails
Merge Olaf - Common fwd: add copyright, add more declaration

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
 
 
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;
 
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);
42
36
 
43
37
/*
44
38
  Class Item_sum is the base class used for special expressions that SQL calls
467
461
 
468
462
/* Common class for SUM(DISTINCT), AVG(DISTINCT) */
469
463
 
470
 
class Unique;
471
 
 
472
464
class Item_sum_distinct :public Item_sum_num
473
465
{
474
466
protected:
576
568
};
577
569
 
578
570
 
579
 
class Tmp_Table_Param;
580
 
 
581
571
class Item_sum_count_distinct :public Item_sum_int
582
572
{
583
573
  Table *table;
644
634
 
645
635
/* Item to get the value of a stored sum function */
646
636
 
647
 
class Item_sum_avg;
648
 
 
649
637
class Item_avg_field :public Item_result_field
650
638
{
651
639
public:
706
694
  }
707
695
};
708
696
 
709
 
class Item_sum_variance;
710
 
 
711
697
class Item_variance_field :public Item_result_field
712
698
{
713
699
public:
799
785
  }
800
786
};
801
787
 
802
 
class Item_sum_std;
803
 
 
804
788
class Item_std_field :public Item_variance_field
805
789
{
806
790
public:
960
944
  Item *copy_or_same(Session* session);
961
945
};
962
946
 
963
 
 
964
 
 
965
 
class DRIZZLE_ERROR;
966
 
 
967
947
class Item_func_group_concat : public Item_sum
968
948
{
969
949
  Tmp_Table_Param *tmp_table_param;