diff options
author | Alexey Kopytov <Alexey.Kopytov@sun.com> | 2009-02-14 12:09:35 +0300 |
---|---|---|
committer | Alexey Kopytov <Alexey.Kopytov@sun.com> | 2009-02-14 12:09:35 +0300 |
commit | fb3e5910ec4e9b99fc3340b39900f0e0729ef1da (patch) | |
tree | 3f0546d18ecae37398ae337bdd85bfaf7c3bc56f /sql/sql_string.cc | |
parent | f29aa74aa125990461b8db6e51740026125c8c45 (diff) | |
parent | a01946373d5752c921c4daddfec5c6cdfdbfa627 (diff) | |
download | mariadb-git-fb3e5910ec4e9b99fc3340b39900f0e0729ef1da.tar.gz |
Merge from dev tree.
Diffstat (limited to 'sql/sql_string.cc')
-rw-r--r-- | sql/sql_string.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_string.cc b/sql/sql_string.cc index ed1dc9eac77..6bf624a73a2 100644 --- a/sql/sql_string.cc +++ b/sql/sql_string.cc @@ -122,7 +122,7 @@ bool String::set(double num,uint decimals, CHARSET_INFO *cs) str_charset=cs; if (decimals >= NOT_FIXED_DEC) { - uint32 len= my_sprintf(buff,(buff, "%.14g",num));// Enough for a DATETIME + uint32 len= my_sprintf(buff,(buff, "%.15g",num));// Enough for a DATETIME return copy(buff, len, &my_charset_latin1, cs, &dummy_errors); } #ifdef HAVE_FCONVERT @@ -674,7 +674,7 @@ void String::qs_append(const char *str, uint32 len) void String::qs_append(double d) { char *buff = Ptr + str_length; - str_length+= my_sprintf(buff, (buff, "%.14g", d)); + str_length+= my_sprintf(buff, (buff, "%.15g", d)); } void String::qs_append(double *d) |