summaryrefslogtreecommitdiff
path: root/sql/item.cc
diff options
context:
space:
mode:
authorNisha Gopalakrishnan <nisha.gopalakrishnan@oracle.com>2013-03-28 19:17:28 +0530
committerNisha Gopalakrishnan <nisha.gopalakrishnan@oracle.com>2013-03-28 19:17:28 +0530
commit62db338024677b0af084c127e8f2c6a84114bc8c (patch)
tree2f6ebcbb8c960b85c9947842503a478006530045 /sql/item.cc
parent9a1d651b0e905c5bd3bbb2d8bb68a95511a9a979 (diff)
parente85c90b9d51f58b65809fb4d8224b898d2a3ebb8 (diff)
downloadmariadb-git-62db338024677b0af084c127e8f2c6a84114bc8c.tar.gz
Merge from 5.1 to 5.5
Diffstat (limited to 'sql/item.cc')
-rw-r--r--sql/item.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/sql/item.cc b/sql/item.cc
index 18831b83eae..ccef2b6321a 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -3370,7 +3370,9 @@ bool Item_param::convert_str_value(THD *thd)
/* Here str_value is guaranteed to be in final_character_set_of_str_value */
max_length= str_value.numchars() * str_value.charset()->mbmaxlen;
- decimals= 0;
+
+ /* For the strings converted to numeric form within some functions */
+ decimals= NOT_FIXED_DEC;
/*
str_value_ptr is returned from val_str(). It must be not alloced
to prevent it's modification by val_str() invoker.