1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-12877 Wrong result from JSON native function.

JSON_QUOTE return type set to be JSON.
This commit is contained in:
Alexey Botchkov
2017-09-12 19:15:31 +04:00
parent 825c8d793d
commit 80a3837283
3 changed files with 9 additions and 0 deletions

View File

@ -101,6 +101,7 @@ class Item_func_json_query: public Item_func_json_value
public:
Item_func_json_query(THD *thd, Item *js, Item *i_path):
Item_func_json_value(thd, js, i_path) {}
bool is_json_type() { return true; }
const char *func_name() const { return "json_query"; }
bool check_and_get_value(json_engine_t *je, String *res, int *error);
Item *get_copy(THD *thd, MEM_ROOT *mem_root)