diff options
-rw-r--r-- | sql/item.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item.cc b/sql/item.cc index 568ad74a631..5e74820a3f8 100644 --- a/sql/item.cc +++ b/sql/item.cc @@ -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: |