~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item/decimal.cc

  • Committer: Brian Aker
  • Date: 2011-01-18 07:21:16 UTC
  • mfrom: (2079.3.3 session-fix)
  • Revision ID: brian@tangent.org-20110118072116-nuflltzguzhq9rgg
Merge in update so that test-run.pl runs all of test/suite and fix for
create table like and FK.

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
Item_decimal::Item_decimal(const char *str_arg, uint32_t length,
28
28
                           const CHARSET_INFO * const charset)
29
29
{
30
 
  str2_class_decimal(E_DEC_FATAL_ERROR, str_arg, length, charset, &decimal_value);
 
30
  decimal_value.store(E_DEC_FATAL_ERROR, str_arg, length, charset);
31
31
  name= (char*) str_arg;
32
32
  decimals= (uint8_t) decimal_value.frac;
33
33
  fixed= 1;
88
88
int64_t Item_decimal::val_int()
89
89
{
90
90
  int64_t result;
91
 
  class_decimal2int(E_DEC_FATAL_ERROR, &decimal_value, unsigned_flag, &result);
 
91
  decimal_value.val_int32(E_DEC_FATAL_ERROR, unsigned_flag, &result);
92
92
  return result;
93
93
}
94
94