diff options
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) |