Commit 3a25ef21 authored by unknown's avatar unknown

More new style str->num

parent 0eef805e
...@@ -798,10 +798,8 @@ int Field_decimal::store(longlong nr) ...@@ -798,10 +798,8 @@ int Field_decimal::store(longlong nr)
double Field_decimal::val_real(void) double Field_decimal::val_real(void)
{ {
char temp= *(ptr+field_length); *(ptr+field_length) = '\0'; CHARSET_INFO *cs=charset();
double nr=atod(ptr); return my_strntod(cs,ptr,field_length,NULL);
*(ptr+field_length)=temp;
return(nr);
} }
longlong Field_decimal::val_int(void) longlong Field_decimal::val_int(void)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment