diff options
author | Alexey Botchkov <holyfoot@askmonty.org> | 2016-12-05 01:01:09 +0400 |
---|---|---|
committer | Alexey Botchkov <holyfoot@askmonty.org> | 2016-12-05 01:03:31 +0400 |
commit | 78dc7c3a6ed8000e7e67a1d60194c8793f9e9a40 (patch) | |
tree | 5d7b04342c4c267301585f843c4e42b5bf890e2f /sql/item_jsonfunc.cc | |
parent | 5454500562947bf369f7b984df888e2fd6eb4210 (diff) | |
download | mariadb-git-78dc7c3a6ed8000e7e67a1d60194c8793f9e9a40.tar.gz |
MDEV-11461 JSON_TYPE does not recognize integer/double types.
Integer/Double recognition added.
Diffstat (limited to 'sql/item_jsonfunc.cc')
-rw-r--r-- | sql/item_jsonfunc.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/item_jsonfunc.cc b/sql/item_jsonfunc.cc index 00621bbfade..e39e8118028 100644 --- a/sql/item_jsonfunc.cc +++ b/sql/item_jsonfunc.cc @@ -1310,7 +1310,7 @@ String *Item_func_json_type::val_str(String *str) type= "STRING"; break; case JSON_VALUE_NUMBER: - type= "NUMBER"; + type= (je.num_flags & JSON_NUM_FRAC_PART) ? "DOUBLE" : "INTEGER"; break; case JSON_VALUE_TRUE: case JSON_VALUE_FALSE: |