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

MDEV-12604 Comparison of JSON_EXTRACT result differs with Mysql.

Comparison fixed to take the actual type of JSON value into
        account. Bug in escaping handling fixed.
This commit is contained in:
Alexey Botchkov
2017-08-08 10:35:26 +04:00
parent 86e0a73eaa
commit bb71d9abf2
6 changed files with 138 additions and 13 deletions

View File

@ -127,12 +127,14 @@ class Item_func_json_unquote: public Item_str_func
{
protected:
String tmp_s;
String *read_json(json_engine_t *je);
public:
Item_func_json_unquote(THD *thd, Item *s): Item_str_func(thd, s) {}
const char *func_name() const { return "json_unquote"; }
void fix_length_and_dec();
String *val_str(String *);
double val_real();
longlong val_int();
Item *get_copy(THD *thd, MEM_ROOT *mem_root)
{ return get_item_copy<Item_func_json_unquote>(thd, mem_root, this); }
};