~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/cache_str.cc

  • Committer: Mark Atwood
  • Date: 2011-08-11 03:05:03 UTC
  • mfrom: (2385.1.12 refactor4)
  • Revision ID: me@mark.atwood.name-20110811030503-rp9xjihc5x3y0x4q
mergeĀ lp:~olafvdspek/drizzle/refactor4

Show diffs side-by-side

added added

removed removed

Lines of Context:
17
17
 *  Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
18
18
 */
19
19
 
20
 
#include "config.h"
 
20
#include <config.h>
21
21
 
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 */