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 | 4e9e69e5f894c08c3cf2859eda578f0837b9d4ad (patch) | |
tree | b4a1f26750c960fb55759c1246aa8ad2db10cda6 /sql/field.cc | |
parent | dbb832c02e5282e2703e08065f5288aabfebd9ba (diff) | |
parent | 1d0a11fd159fb05cd1c5c553b152c3848ceb552f (diff) | |
download | mariadb-git-4e9e69e5f894c08c3cf2859eda578f0837b9d4ad.tar.gz |
auto-merge conservative fix for Bug#55436/Bug#11762799
Diffstat (limited to 'sql/field.cc')
-rw-r--r-- | sql/field.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/field.cc b/sql/field.cc index 11edd8bfc1a..60808042084 100644 --- a/sql/field.cc +++ b/sql/field.cc @@ -2583,7 +2583,7 @@ bool Field_new_decimal::store_value(const my_decimal *decimal_value) DBUG_ENTER("Field_new_decimal::store_value"); #ifndef DBUG_OFF { - char dbug_buff[DECIMAL_MAX_STR_LENGTH+1]; + char dbug_buff[DECIMAL_MAX_STR_LENGTH+2]; DBUG_PRINT("enter", ("value: %s", dbug_decimal_as_string(dbug_buff, decimal_value))); } #endif @@ -2598,7 +2598,7 @@ bool Field_new_decimal::store_value(const my_decimal *decimal_value) } #ifndef DBUG_OFF { - char dbug_buff[DECIMAL_MAX_STR_LENGTH+1]; + char dbug_buff[DECIMAL_MAX_STR_LENGTH+2]; DBUG_PRINT("info", ("saving with precision %d scale: %d value %s", (int)precision, (int)dec, dbug_decimal_as_string(dbug_buff, decimal_value))); @@ -2673,7 +2673,7 @@ int Field_new_decimal::store(const char *from, uint length, } #ifndef DBUG_OFF - char dbug_buff[DECIMAL_MAX_STR_LENGTH+1]; + char dbug_buff[DECIMAL_MAX_STR_LENGTH+2]; DBUG_PRINT("enter", ("value: %s", dbug_decimal_as_string(dbug_buff, &decimal_value))); #endif |