diff options
author | Vladislav Vaintroub <wlad@mariadb.com> | 2019-06-29 23:53:09 +0200 |
---|---|---|
committer | Vladislav Vaintroub <wlad@mariadb.com> | 2019-06-30 17:48:19 +0200 |
commit | 0efe50ec358dcb898f5b499a4061953f82d75c4a (patch) | |
tree | 1fa73cdfe529e6a81b5c2c40ab6084ff7b9c0192 /sql/item_jsonfunc.h | |
parent | 0179aad633c61eabe3adfb22e5ee91622b3d847d (diff) | |
download | mariadb-git-0efe50ec358dcb898f5b499a4061953f82d75c4a.tar.gz |
Remove the most annoying clang-cl warnings
Fix "consistent override", and "unused private field" warnings
in popular header files.
Diffstat (limited to 'sql/item_jsonfunc.h')
-rw-r--r-- | sql/item_jsonfunc.h | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/sql/item_jsonfunc.h b/sql/item_jsonfunc.h index a9e6f39b5c8..c4dfe9adfb4 100644 --- a/sql/item_jsonfunc.h +++ b/sql/item_jsonfunc.h @@ -127,9 +127,9 @@ class Item_func_json_value: public Item_str_func, public: Item_func_json_value(THD *thd, Item *js, Item *i_path): Item_str_func(thd, js, i_path) {} - const char *func_name() const { return "json_value"; } - bool fix_length_and_dec(); - String *val_str(String *to) + const char *func_name() const override { return "json_value"; } + bool fix_length_and_dec() override ; + String *val_str(String *to) override { null_value= Json_path_extractor::extract(to, args[0], args[1], collation.collation); @@ -140,7 +140,7 @@ public: { return je->check_and_get_value_scalar(res, error); } - Item *get_copy(THD *thd) + Item *get_copy(THD *thd) override { return get_item_copy<Item_func_json_value>(thd, this); } }; @@ -151,9 +151,9 @@ class Item_func_json_query: public Item_json_func, public: Item_func_json_query(THD *thd, Item *js, Item *i_path): Item_json_func(thd, js, i_path) {} - const char *func_name() const { return "json_query"; } - bool fix_length_and_dec(); - String *val_str(String *to) + const char *func_name() const override { return "json_query"; } + bool fix_length_and_dec() override; + String *val_str(String *to) override { null_value= Json_path_extractor::extract(to, args[0], args[1], collation.collation); @@ -164,7 +164,7 @@ public: { return je->check_and_get_value_complex(res, error); } - Item *get_copy(THD *thd) + Item *get_copy(THD *thd) override { return get_item_copy<Item_func_json_query>(thd, this); } }; |