~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/cache_str.cc

  • Committer: Brian Aker
  • Date: 2011-01-25 05:20:15 UTC
  • mto: (2109.1.6 drizzle-build)
  • mto: This revision was merged to the branch mainline in revision 2112.
  • Revision ID: brian@tangent.org-20110125052015-nw5jhmiq0at1qt9u
Merge in reference from pointer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
76
76
    return (int64_t)0;
77
77
}
78
78
 
79
 
my_decimal *Item_cache_str::val_decimal(my_decimal *decimal_val)
 
79
type::Decimal *Item_cache_str::val_decimal(type::Decimal *decimal_val)
80
80
{
81
81
  assert(fixed == 1);
82
82
  if (value)
83
 
    string2my_decimal(E_DEC_FATAL_ERROR, value, decimal_val);
 
83
    decimal_val->store(E_DEC_FATAL_ERROR, value);
84
84
  else
85
85
    decimal_val= 0;
86
86
  return decimal_val;