~ubuntu-branches/ubuntu/saucy/drizzle/saucy-proposed

« back to all changes in this revision

Viewing changes to drizzled/item/cache_str.cc

  • Committer: Package Import Robot
  • Author(s): Clint Byrum
  • Date: 2012-06-19 10:46:49 UTC
  • mfrom: (1.1.6)
  • mto: This revision was merged to the branch mainline in revision 29.
  • Revision ID: package-import@ubuntu.com-20120619104649-e2l0ggd4oz3um0f4
Tags: upstream-7.1.36-stable
ImportĀ upstreamĀ versionĀ 7.1.36-stable

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 */