Commit 857d447e authored by bar@bar.mysql.r18.ru's avatar bar@bar.mysql.r18.ru

More new style str->num

parent 257cd4ab
......@@ -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)
......
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