~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/sum.cc

  • Committer: Brian Aker
  • Date: 2010-12-26 22:31:33 UTC
  • mto: This revision was merged to the branch mainline in revision 2036.
  • Revision ID: brian@tangent.org-20101226223133-6470gt27jtgm9k7z
FurtherĀ encapsulationĀ forĀ DECIMAL.

Show diffs side-by-side

added added

removed removed

Lines of Context:
683
683
    break;
684
684
  case DECIMAL_RESULT:
685
685
    max_length= item->max_length;
686
 
    class_decimal_set_zero(&sum_dec);
 
686
    sum_dec.set_zero();
687
687
    break;
688
688
  case REAL_RESULT:
689
689
    max_length= float_length(decimals);
784
784
  if (hybrid_type == DECIMAL_RESULT)
785
785
  {
786
786
    curr_dec_buff= 0;
787
 
    class_decimal_set_zero(dec_buffs);
 
787
    dec_buffs->set_zero();
788
788
  }
789
789
  else
790
790
    sum= 0.0;
811
811
                                                 unsigned_flag);
812
812
      curr_dec_buff= 0;
813
813
      hybrid_type= DECIMAL_RESULT;
814
 
      class_decimal_set_zero(dec_buffs);
 
814
      dec_buffs->set_zero();
815
815
      break;
816
816
    }
817
817
  case ROW_RESULT:
1602
1602
    sum_int= 0;
1603
1603
    break;
1604
1604
  case DECIMAL_RESULT:
1605
 
    class_decimal_set_zero(&sum_dec);
 
1605
    sum_dec.set_zero();
1606
1606
    break;
1607
1607
  case REAL_RESULT:
1608
1608
    sum= 0.0;