~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/function/set_user_var.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:
231
231
                         DERIVATION_IMPLICIT, 0);
232
232
      else
233
233
        res= update_hash((void*) save_result.vdec,
234
 
                         sizeof(type::Decimal), DECIMAL_RESULT,
 
234
                         sizeof(my_decimal), DECIMAL_RESULT,
235
235
                         &my_charset_bin, DERIVATION_IMPLICIT, 0);
236
236
      break;
237
237
    }
270
270
}
271
271
 
272
272
 
273
 
type::Decimal *Item_func_set_user_var::val_decimal(type::Decimal *val)
 
273
my_decimal *Item_func_set_user_var::val_decimal(my_decimal *val)
274
274
{
275
275
  assert(fixed == 1);
276
276
  check(0);
303
303
}
304
304
 
305
305
 
306
 
type::Decimal *Item_func_set_user_var::val_decimal_result(type::Decimal *val)
 
306
my_decimal *Item_func_set_user_var::val_decimal_result(my_decimal *val)
307
307
{
308
308
  assert(fixed == 1);
309
309
  check(true);
426
426
  }
427
427
  else if (result_type() == DECIMAL_RESULT)
428
428
  {
429
 
    type::Decimal decimal_value;
430
 
    type::Decimal *val= entry->val_decimal(&null_value, &decimal_value);
 
429
    my_decimal decimal_value;
 
430
    my_decimal *val= entry->val_decimal(&null_value, &decimal_value);
431
431
    if (null_value)
432
432
      return set_field_to_null(field);
433
433
    field->set_notnull();