summaryrefslogtreecommitdiff
path: root/mysys/ma_dyncol.c
diff options
context:
space:
mode:
authorunknown <sanja@askmonty.org>2013-01-10 19:47:07 +0200
committerunknown <sanja@askmonty.org>2013-01-10 19:47:07 +0200
commit4d6e5b2fed80b20272d632d4f1b77f10cb2d7789 (patch)
tree4ce8ab03a6829511b200f067cb0f8cfceac82868 /mysys/ma_dyncol.c
parent7b81b641665fcba5aaaebe179c4ebf30c00143df (diff)
downloadmariadb-git-4d6e5b2fed80b20272d632d4f1b77f10cb2d7789.tar.gz
fixed crossplatform double values representation.
Diffstat (limited to 'mysys/ma_dyncol.c')
-rw-r--r--mysys/ma_dyncol.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysys/ma_dyncol.c b/mysys/ma_dyncol.c
index 411e5295a2c..0562ac8f064 100644
--- a/mysys/ma_dyncol.c
+++ b/mysys/ma_dyncol.c
@@ -3815,7 +3815,7 @@ mariadb_dyncol_val_str(DYNAMIC_STRING *str, DYNAMIC_COLUMN_VALUE *val,
return ER_DYNCOL_RESOURCE;
break;
case DYN_COL_DOUBLE:
- len= snprintf(buff, sizeof(buff), "%lg", val->x.double_value);
+ len= my_snprintf(buff, sizeof(buff), "%g", val->x.double_value);
if (dynstr_realloc(str, len + (quote ? 2 : 0)))
return ER_DYNCOL_RESOURCE;
if (quote)