diff options
author | Tatiana Azundris Nurnberg <azundris@sun.com> | 2011-05-05 06:39:38 +0100 |
---|---|---|
committer | Tatiana Azundris Nurnberg <azundris@sun.com> | 2011-05-05 06:39:38 +0100 |
commit | 9d80d48806b4b4a5fdf42b3985ca4b8610639e95 (patch) | |
tree | b4a1f26750c960fb55759c1246aa8ad2db10cda6 /sql/my_decimal.h | |
parent | 22639a066cde7b18133f81ca8c0528e115c08677 (diff) | |
parent | ccbc24b45a79b6407487550fa19b40752d22fa7f (diff) | |
download | mariadb-git-9d80d48806b4b4a5fdf42b3985ca4b8610639e95.tar.gz |
auto-merge conservative fix for Bug#55436/Bug#11762799
Diffstat (limited to 'sql/my_decimal.h')
-rw-r--r-- | sql/my_decimal.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/my_decimal.h b/sql/my_decimal.h index a5077f397e3..97546c91da1 100644 --- a/sql/my_decimal.h +++ b/sql/my_decimal.h @@ -55,7 +55,7 @@ C_MODE_END /** maximum length of string representation (number of maximum decimal - digits + 1 position for sign + 1 position for decimal point) + digits + 1 position for sign + 1 position for decimal point, no terminator) */ #define DECIMAL_MAX_STR_LENGTH (DECIMAL_MAX_POSSIBLE_PRECISION + 2) @@ -212,6 +212,7 @@ inline uint32 my_decimal_precision_to_length(uint precision, uint8 scale, inline int my_decimal_string_length(const my_decimal *d) { + /* length of string representation including terminating '\0' */ return decimal_string_size(d); } |