summaryrefslogtreecommitdiff
path: root/client/sql_string.cc
diff options
context:
space:
mode:
authorAlexey Kopytov <Alexey.Kopytov@sun.com>2009-02-10 16:27:35 +0300
committerAlexey Kopytov <Alexey.Kopytov@sun.com>2009-02-10 16:27:35 +0300
commit1571f06196072930b6bcf3d77eeae3cbe4a3611b (patch)
treebdffa8e5d8194b81855bad072fe9eb7827c64d02 /client/sql_string.cc
parent0888d7c0a8fdc72563d710cc3affa61ad2262c5c (diff)
parenta01946373d5752c921c4daddfec5c6cdfdbfa627 (diff)
downloadmariadb-git-1571f06196072930b6bcf3d77eeae3cbe4a3611b.tar.gz
Merge into dev tree.
Diffstat (limited to 'client/sql_string.cc')
-rw-r--r--client/sql_string.cc4
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)