~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/cache_str.cc

  • Committer: Olaf van der Spek
  • Date: 2011-07-05 09:52:28 UTC
  • mto: This revision was merged to the branch mainline in revision 2367.
  • Revision ID: olafvdspek@gmail.com-20110705095228-y4aejvsuyeezloqe
Refactor Items

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
#include <drizzled/item/cache_str.h>
23
23
#include <drizzled/field.h>
24
24
 
25
 
namespace drizzled
26
 
{
 
25
namespace drizzled {
27
26
 
28
27
Item_cache_str::Item_cache_str(const Item *item) :
29
28
  Item_cache(), value(0),
74
73
    return my_strntoll(value->charset(), value->ptr(),
75
74
                       value->length(), 10, (char**) 0, &err);
76
75
  else
77
 
    return (int64_t)0;
 
76
    return 0;
78
77
}
79
78
 
80
79
type::Decimal *Item_cache_str::val_decimal(type::Decimal *decimal_val)
89
88
 
90
89
int Item_cache_str::save_in_field(Field *field, bool no_conversions)
91
90
{
92
 
  int res= Item_cache::save_in_field(field, no_conversions);
93
 
 
94
 
  return res;
 
91
  return Item_cache::save_in_field(field, no_conversions);
95
92
}
96
93
 
97
94
} /* namespace drizzled */