diff options
author | unknown <sanja@askmonty.org> | 2013-01-10 19:47:07 +0200 |
---|---|---|
committer | unknown <sanja@askmonty.org> | 2013-01-10 19:47:07 +0200 |
commit | 4d6e5b2fed80b20272d632d4f1b77f10cb2d7789 (patch) | |
tree | 4ce8ab03a6829511b200f067cb0f8cfceac82868 /mysys/ma_dyncol.c | |
parent | 7b81b641665fcba5aaaebe179c4ebf30c00143df (diff) | |
download | mariadb-git-4d6e5b2fed80b20272d632d4f1b77f10cb2d7789.tar.gz |
fixed crossplatform double values representation.
Diffstat (limited to 'mysys/ma_dyncol.c')
-rw-r--r-- | mysys/ma_dyncol.c | 2 |
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) |