diff options
author | Alexey Kopytov <Alexey.Kopytov@sun.com> | 2009-02-10 16:27:35 +0300 |
---|---|---|
committer | Alexey Kopytov <Alexey.Kopytov@sun.com> | 2009-02-10 16:27:35 +0300 |
commit | 1571f06196072930b6bcf3d77eeae3cbe4a3611b (patch) | |
tree | bdffa8e5d8194b81855bad072fe9eb7827c64d02 /client/sql_string.cc | |
parent | 0888d7c0a8fdc72563d710cc3affa61ad2262c5c (diff) | |
parent | a01946373d5752c921c4daddfec5c6cdfdbfa627 (diff) | |
download | mariadb-git-1571f06196072930b6bcf3d77eeae3cbe4a3611b.tar.gz |
Merge into 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 c41463999aa..0ae3648f64a 100644 --- a/client/sql_string.cc +++ b/client/sql_string.cc @@ -125,7 +125,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 @@ -677,7 +677,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) |