~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/cached_item.cc

  • Committer: Brian Aker
  • Date: 2010-12-25 00:28:49 UTC
  • mto: This revision was merged to the branch mainline in revision 2031.
  • Revision ID: brian@tangent.org-20101225002849-g73mg6ihulajis0o
First pass in refactoring of the name of my_decimal.

Show diffs side-by-side

added added

removed removed

Lines of Context:
164
164
Cached_item_decimal::Cached_item_decimal(Item *it)
165
165
  :item(it)
166
166
{
167
 
  my_decimal_set_zero(&value);
 
167
  class_decimal_set_zero(&value);
168
168
}
169
169
 
170
170
 
173
173
  my_decimal tmp;
174
174
  my_decimal *ptmp= item->val_decimal(&tmp);
175
175
  if (null_value != item->null_value ||
176
 
      (!item->null_value && my_decimal_cmp(&value, ptmp)))
 
176
      (!item->null_value && class_decimal_cmp(&value, ptmp)))
177
177
  {
178
178
    null_value= item->null_value;
179
179
    /* Save only not null values */