~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/item.cc

  • Committer: Monty Taylor
  • Date: 2008-08-10 06:46:23 UTC
  • mto: (312.1.3 translations)
  • mto: This revision was merged to the branch mainline in revision 295.
  • Revision ID: monty@inaugust.com-20080810064623-4bijesnjcqws0ezs
Rolled back a couple of overly anxious consts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
2207
2207
    internal decimal value.
2208
2208
*/
2209
2209
 
2210
 
void Item_param::set_decimal(const char *str, ulong length)
 
2210
void Item_param::set_decimal(char *str, ulong length)
2211
2211
{
2212
2212
  char *end;
2213
2213
 
2214
 
  end= (char*) str+length;
2215
 
  str2my_decimal(E_DEC_FATAL_ERROR, str, &decimal_value, &end);
 
2214
  end= str+length;
 
2215
  str2my_decimal((uint)E_DEC_FATAL_ERROR, str, &decimal_value, &end);
2216
2216
  state= DECIMAL_VALUE;
2217
2217
  decimals= decimal_value.frac;
2218
2218
  max_length= my_decimal_precision_to_length(decimal_value.precision(),