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 | 9d21ff114812be658bdcaa8abdf99b164d48980b (patch) | |
tree | 3f0546d18ecae37398ae337bdd85bfaf7c3bc56f /client/sql_string.cc | |
parent | 9cce8f40ebe930f1682efa3b504a2d9b874b1996 (diff) | |
parent | 30ac49019d5feb98747d0fc880afe9296397d6b7 (diff) | |
download | mariadb-git-9d21ff114812be658bdcaa8abdf99b164d48980b.tar.gz |
Merge from dev tree.
Diffstat (limited to 'client/sql_string.cc')
-rw-r--r-- | client/sql_string.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/client/sql_string.cc b/client/sql_string.cc index fe1fd83a6f6..321bddbf69a 100644 --- a/client/sql_string.cc +++ b/client/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) |