Commit 59069e60 authored by bar@bar.mysql.r18.ru's avatar bar@bar.mysql.r18.ru

More use of new str->num conversion routines

parent 632dff01
......@@ -382,7 +382,7 @@ double Item_param::val()
{
switch (item_result_type) {
case STRING_RESULT:
return (double)atof(str_value.ptr());
return (double)my_strntod(str_value.charset(),str_value.ptr(),str_value.length(),(char**)0);
case INT_RESULT:
return (double)int_value;
default:
......
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