~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/sum.cc

  • Committer: Olaf van der Spek
  • Date: 2011-06-27 11:27:18 UTC
  • mto: This revision was merged to the branch mainline in revision 2350.
  • Revision ID: olafvdspek@gmail.com-20110627112718-fho02gkimtg3h7jv
Refactor

Show diffs side-by-side

added added

removed removed

Lines of Context:
777
777
 
778
778
Item *Item_sum_sum::copy_or_same(Session* session)
779
779
{
780
 
  return new (session->mem_root) Item_sum_sum(session, this);
 
780
  return new (session->mem) Item_sum_sum(session, this);
781
781
}
782
782
 
783
783
 
1018
1018
  /*
1019
1019
    Virtual table and the tree are created anew on each re-execution of
1020
1020
    PS/SP. Hence all further allocations are performed in the runtime
1021
 
    mem_root.
 
1021
    mem.
1022
1022
  */
1023
1023
  null_value= maybe_null= 1;
1024
1024
  quick_group= 0;
1180
1180
 
1181
1181
Item *Item_sum_count::copy_or_same(Session* session)
1182
1182
{
1183
 
  return new (session->mem_root) Item_sum_count(session, this);
 
1183
  return new (session->mem) Item_sum_count(session, this);
1184
1184
}
1185
1185
 
1186
1186
 
1240
1240
 
1241
1241
Item *Item_sum_avg::copy_or_same(Session* session)
1242
1242
{
1243
 
  return new (session->mem_root) Item_sum_avg(session, this);
 
1243
  return new (session->mem) Item_sum_avg(session, this);
1244
1244
}
1245
1245
 
1246
1246
 
1352
1352
 
1353
1353
Item *Item_sum_std::copy_or_same(Session* session)
1354
1354
{
1355
 
  return new (session->mem_root) Item_sum_std(session, this);
 
1355
  return new (session->mem) Item_sum_std(session, this);
1356
1356
}
1357
1357
 
1358
1358
 
1450
1450
 
1451
1451
Item *Item_sum_variance::copy_or_same(Session* session)
1452
1452
{
1453
 
  return new (session->mem_root) Item_sum_variance(session, this);
 
1453
  return new (session->mem) Item_sum_variance(session, this);
1454
1454
}
1455
1455
 
1456
1456
 
1742
1742
 
1743
1743
Item *Item_sum_min::copy_or_same(Session* session)
1744
1744
{
1745
 
  return new (session->mem_root) Item_sum_min(session, this);
 
1745
  return new (session->mem) Item_sum_min(session, this);
1746
1746
}
1747
1747
 
1748
1748
 
1805
1805
 
1806
1806
Item *Item_sum_max::copy_or_same(Session* session)
1807
1807
{
1808
 
  return new (session->mem_root) Item_sum_max(session, this);
 
1808
  return new (session->mem) Item_sum_max(session, this);
1809
1809
}
1810
1810
 
1811
1811
 
1883
1883
 
1884
1884
Item *Item_sum_or::copy_or_same(Session* session)
1885
1885
{
1886
 
  return new (session->mem_root) Item_sum_or(session, this);
 
1886
  return new (session->mem) Item_sum_or(session, this);
1887
1887
}
1888
1888
 
1889
1889
 
1897
1897
 
1898
1898
Item *Item_sum_xor::copy_or_same(Session* session)
1899
1899
{
1900
 
  return new (session->mem_root) Item_sum_xor(session, this);
 
1900
  return new (session->mem) Item_sum_xor(session, this);
1901
1901
}
1902
1902
 
1903
1903
 
1911
1911
 
1912
1912
Item *Item_sum_and::copy_or_same(Session* session)
1913
1913
{
1914
 
  return new (session->mem_root) Item_sum_and(session, this);
 
1914
  return new (session->mem) Item_sum_and(session, this);
1915
1915
}
1916
1916
 
1917
1917
 
2685
2685
 
2686
2686
Item *Item_sum_count_distinct::copy_or_same(Session* session)
2687
2687
{
2688
 
  return new (session->mem_root) Item_sum_count_distinct(session, this);
 
2688
  return new (session->mem) Item_sum_count_distinct(session, this);
2689
2689
}
2690
2690
 
2691
2691
 
3083
3083
 
3084
3084
Item *Item_func_group_concat::copy_or_same(Session* session)
3085
3085
{
3086
 
  return new (session->mem_root) Item_func_group_concat(session, this);
 
3086
  return new (session->mem) Item_func_group_concat(session, this);
3087
3087
}
3088
3088
 
3089
3089