1
0
mirror of https://github.com/MariaDB/server.git synced 2025-12-24 11:21:21 +03:00

More new style str->num

This commit is contained in:
bar@bar.mysql.r18.ru
2002-12-10 12:43:17 +04:00
parent 257cd4ab78
commit 857d447e23

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)