More new style str->num

This commit is contained in:
unknown 2002-12-10 12:43:17 +04:00
parent 0eef805e5a
commit 3a25ef2191

View File

@ -798,10 +798,8 @@ int Field_decimal::store(longlong nr)
double Field_decimal::val_real(void)
{
char temp= *(ptr+field_length); *(ptr+field_length) = '\0';
double nr=atod(ptr);
*(ptr+field_length)=temp;
return(nr);
CHARSET_INFO *cs=charset();
return my_strntod(cs,ptr,field_length,NULL);
}
longlong Field_decimal::val_int(void)