From 59069e60f232b8b9d2177e9ecb1ab38c1d6d5670 Mon Sep 17 00:00:00 2001
From: "bar@bar.mysql.r18.ru" <>
Date: Mon, 9 Dec 2002 15:58:33 +0400
Subject: [PATCH] More use of new str->num conversion routines

---
 sql/item.cc | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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:
-- 
2.30.9