diff options
Diffstat (limited to 'plugin/func_test/plugin.cc')
-rw-r--r-- | plugin/func_test/plugin.cc | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/plugin/func_test/plugin.cc b/plugin/func_test/plugin.cc index b49f87832d6..f59ee82388c 100644 --- a/plugin/func_test/plugin.cc +++ b/plugin/func_test/plugin.cc @@ -24,12 +24,12 @@ class Item_func_sysconst_test :public Item_func_sysconst { public: Item_func_sysconst_test(THD *thd): Item_func_sysconst(thd) {} - String *val_str(String *str) + String *val_str(String *str) override { null_value= str->copy(STRING_WITH_LEN("sysconst_test"), system_charset_info); return null_value ? NULL : str; } - bool fix_length_and_dec() + bool fix_length_and_dec() override { max_length= MAX_FIELD_NAME * system_charset_info->mbmaxlen; set_maybe_null(); @@ -40,8 +40,9 @@ public: static LEX_CSTRING name= {STRING_WITH_LEN("sysconst_test") }; return name; } - const char *fully_qualified_func_name() const { return "sysconst_test()"; } - Item *get_copy(THD *thd) + const char *fully_qualified_func_name() const override + { return "sysconst_test()"; } + Item *get_copy(THD *thd) override { return get_item_copy<Item_func_sysconst_test>(thd, this); } }; |