~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/cache_str.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:
20
20
#include "config.h"
21
21
 
22
22
#include <drizzled/item/cache_str.h>
23
 
#include <drizzled/field.h>
24
23
 
25
24
namespace drizzled
26
25
{
77
76
    return (int64_t)0;
78
77
}
79
78
 
80
 
type::Decimal *Item_cache_str::val_decimal(type::Decimal *decimal_val)
 
79
my_decimal *Item_cache_str::val_decimal(my_decimal *decimal_val)
81
80
{
82
81
  assert(fixed == 1);
83
82
  if (value)
84
 
    decimal_val->store(E_DEC_FATAL_ERROR, value);
 
83
    string2my_decimal(E_DEC_FATAL_ERROR, value, decimal_val);
85
84
  else
86
85
    decimal_val= 0;
87
86
  return decimal_val;