summaryrefslogtreecommitdiff
path: root/mysys
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2015-12-10 10:18:34 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2015-12-10 10:19:56 +0100
commitd289ba808d064446cfd1c29afde8a259ca847e8a (patch)
tree05cb0ae8d89dad59e8bf0e30f9b4f0b4c58e69bd /mysys
parent7bf7fea706ca02553f2142d822637c9bd75d5fe7 (diff)
downloadmariadb-git-d289ba808d064446cfd1c29afde8a259ca847e8a.tar.gz
MDEV-8401 COLUMN_CREATE(name, value as DOUBLE) results in string
Double representation fixed (JSON is valid even with 'e' in the number)
Diffstat (limited to 'mysys')
-rw-r--r--mysys/ma_dyncol.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/mysys/ma_dyncol.c b/mysys/ma_dyncol.c
index 7e47856ce2d..7dfaf29a1a7 100644
--- a/mysys/ma_dyncol.c
+++ b/mysys/ma_dyncol.c
@@ -3840,11 +3840,7 @@ mariadb_dyncol_val_str(DYNAMIC_STRING *str, DYNAMIC_COLUMN_VALUE *val,
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)
- str->str[str->length++]= quote;
dynstr_append_mem(str, buff, len);
- if (quote)
- str->str[str->length++]= quote;
break;
case DYN_COL_DYNCOL:
case DYN_COL_STRING: