Commit 72f677d3 authored by Marko Mäkelä's avatar Marko Mäkelä Committed by Sergei Golubchik

fixup 58e759a9: clang -Winconsistent-missing-override

parent 28e714b5
...@@ -2164,7 +2164,7 @@ class Item_aggregate_ref : public Item_ref ...@@ -2164,7 +2164,7 @@ class Item_aggregate_ref : public Item_ref
else else
Item_ident::print(str, query_type); Item_ident::print(str, query_type);
} }
virtual Ref_Type ref_type() { return AGGREGATE_REF; } Ref_Type ref_type() override final { return AGGREGATE_REF; }
}; };
......
...@@ -1019,7 +1019,7 @@ class Stddev ...@@ -1019,7 +1019,7 @@ class Stddev
class Item_sum_variance :public Item_sum_double class Item_sum_variance :public Item_sum_double
{ {
Stddev m_stddev; Stddev m_stddev;
bool fix_length_and_dec(); bool fix_length_and_dec() override;
public: public:
uint sample; uint sample;
...@@ -1030,26 +1030,27 @@ class Item_sum_variance :public Item_sum_double ...@@ -1030,26 +1030,27 @@ class Item_sum_variance :public Item_sum_double
sample(sample_arg) sample(sample_arg)
{} {}
Item_sum_variance(THD *thd, Item_sum_variance *item); Item_sum_variance(THD *thd, Item_sum_variance *item);
enum Sumfunctype sum_func () const { return VARIANCE_FUNC; } Sumfunctype sum_func () const override { return VARIANCE_FUNC; }
void fix_length_and_dec_double(); void fix_length_and_dec_double();
void fix_length_and_dec_decimal(); void fix_length_and_dec_decimal();
void clear() override final; void clear() override final;
bool add() override final; bool add() override final;
double val_real(); double val_real() override;
void reset_field() override final; void reset_field() override final;
void update_field() override final; void update_field() override final;
Item *result_item(THD *thd, Field *field); Item *result_item(THD *thd, Field *field) override;
void no_rows_in_result() override final {} void no_rows_in_result() override final {}
const char *func_name() const const char *func_name() const override
{ return sample ? "var_samp(" : "variance("; } { return sample ? "var_samp(" : "variance("; }
Item *copy_or_same(THD* thd); Item *copy_or_same(THD* thd) override;
Field *create_tmp_field(MEM_ROOT *root, bool group, TABLE *table); Field *create_tmp_field(MEM_ROOT *root, bool group, TABLE *table) override
void cleanup() final;
void cleanup() override final
{ {
m_stddev= Stddev(); m_stddev= Stddev();
Item_sum_double::cleanup(); Item_sum_double::cleanup();
} }
Item *get_copy(THD *thd) Item *get_copy(THD *thd) override
{ return get_item_copy<Item_sum_variance>(thd, this); } { return get_item_copy<Item_sum_variance>(thd, this); }
}; };
...@@ -1065,12 +1066,12 @@ class Item_sum_std final :public Item_sum_variance ...@@ -1065,12 +1066,12 @@ class Item_sum_std final :public Item_sum_variance
Item_sum_std(THD *thd, Item_sum_std *item) Item_sum_std(THD *thd, Item_sum_std *item)
:Item_sum_variance(thd, item) :Item_sum_variance(thd, item)
{} {}
enum Sumfunctype sum_func () const { return STD_FUNC; } enum Sumfunctype sum_func () const override final { return STD_FUNC; }
double val_real(); double val_real() override final;
Item *result_item(THD *thd, Field *field); Item *result_item(THD *thd, Field *field) override final;
const char *func_name() const { return "std("; } const char *func_name() const override final { return "std("; }
Item *copy_or_same(THD* thd); Item *copy_or_same(THD* thd) override final;
Item *get_copy(THD *thd) Item *get_copy(THD *thd) override final
{ return get_item_copy<Item_sum_std>(thd, this); } { return get_item_copy<Item_sum_std>(thd, this); }
}; };
......
...@@ -2,6 +2,7 @@ ...@@ -2,6 +2,7 @@
#define PROTOCOL_INCLUDED #define PROTOCOL_INCLUDED
/* Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved. /* Copyright (c) 2002, 2010, Oracle and/or its affiliates. All rights reserved.
Copyright (c) 2020, MariaDB Corporation.
This program is free software; you can redistribute it and/or modify This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by it under the terms of the GNU General Public License as published by
...@@ -214,27 +215,27 @@ class Protocol_text final :public Protocol ...@@ -214,27 +215,27 @@ class Protocol_text final :public Protocol
if (prealloc) if (prealloc)
packet->alloc(prealloc); packet->alloc(prealloc);
} }
virtual void prepare_for_resend(); void prepare_for_resend() override;
virtual bool store_null(); bool store_null() override;
virtual bool store_tiny(longlong from); bool store_tiny(longlong from) override;
virtual bool store_short(longlong from); bool store_short(longlong from) override;
virtual bool store_long(longlong from); bool store_long(longlong from) override;
virtual bool store_longlong(longlong from, bool unsigned_flag); bool store_longlong(longlong from, bool unsigned_flag) override;
virtual bool store_decimal(const my_decimal *); bool store_decimal(const my_decimal *) override;
virtual bool store_str(const char *from, size_t length, bool store_str(const char *from, size_t length,
CHARSET_INFO *fromcs, CHARSET_INFO *fromcs,
my_repertoire_t from_repertoire, my_repertoire_t from_repertoire,
CHARSET_INFO *tocs); CHARSET_INFO *tocs) override;
virtual bool store(MYSQL_TIME *time, int decimals); bool store(MYSQL_TIME *time, int decimals) override;
virtual bool store_date(MYSQL_TIME *time); bool store_date(MYSQL_TIME *time) override;
virtual bool store_time(MYSQL_TIME *time, int decimals); bool store_time(MYSQL_TIME *time, int decimals) override;
virtual bool store(float nr, uint32 decimals, String *buffer); bool store(float nr, uint32 decimals, String *buffer) override;
virtual bool store(double from, uint32 decimals, String *buffer); bool store(double from, uint32 decimals, String *buffer) override;
virtual bool store(Field *field); bool store(Field *field) override;
virtual bool send_out_parameters(List<Item_param> *sp_params); bool send_out_parameters(List<Item_param> *sp_params) override;
#ifdef EMBEDDED_LIBRARY #ifdef EMBEDDED_LIBRARY
void remove_last_row(); void remove_last_row() override;
#endif #endif
bool store_field_metadata(const THD *thd, const Send_field &field, bool store_field_metadata(const THD *thd, const Send_field &field,
CHARSET_INFO *charset_for_protocol, CHARSET_INFO *charset_for_protocol,
...@@ -253,32 +254,32 @@ class Protocol_binary final :public Protocol ...@@ -253,32 +254,32 @@ class Protocol_binary final :public Protocol
uint bit_fields; uint bit_fields;
public: public:
Protocol_binary(THD *thd_arg) :Protocol(thd_arg) {} Protocol_binary(THD *thd_arg) :Protocol(thd_arg) {}
virtual bool prepare_for_send(uint num_columns); bool prepare_for_send(uint num_columns) override;
virtual void prepare_for_resend(); void prepare_for_resend() override;
#ifdef EMBEDDED_LIBRARY #ifdef EMBEDDED_LIBRARY
virtual bool write(); bool write() override;
bool net_store_data(const uchar *from, size_t length); bool net_store_data(const uchar *from, size_t length) override;
bool net_store_data_cs(const uchar *from, size_t length, bool net_store_data_cs(const uchar *from, size_t length,
CHARSET_INFO *fromcs, CHARSET_INFO *tocs); CHARSET_INFO *fromcs, CHARSET_INFO *tocs) override;
#endif #endif
virtual bool store_null(); bool store_null() override;
virtual bool store_tiny(longlong from); bool store_tiny(longlong from) override;
virtual bool store_short(longlong from); bool store_short(longlong from) override;
virtual bool store_long(longlong from); bool store_long(longlong from) override;
virtual bool store_longlong(longlong from, bool unsigned_flag); bool store_longlong(longlong from, bool unsigned_flag) override;
virtual bool store_decimal(const my_decimal *); bool store_decimal(const my_decimal *) override;
virtual bool store_str(const char *from, size_t length, bool store_str(const char *from, size_t length,
CHARSET_INFO *fromcs, CHARSET_INFO *fromcs,
my_repertoire_t from_repertoire, my_repertoire_t from_repertoire,
CHARSET_INFO *tocs); CHARSET_INFO *tocs) override;
virtual bool store(MYSQL_TIME *time, int decimals); bool store(MYSQL_TIME *time, int decimals) override;
virtual bool store_date(MYSQL_TIME *time); bool store_date(MYSQL_TIME *time) override;
virtual bool store_time(MYSQL_TIME *time, int decimals); bool store_time(MYSQL_TIME *time, int decimals) override;
virtual bool store(float nr, uint32 decimals, String *buffer); bool store(float nr, uint32 decimals, String *buffer) override;
virtual bool store(double from, uint32 decimals, String *buffer); bool store(double from, uint32 decimals, String *buffer) override;
virtual bool store(Field *field); bool store(Field *field) override;
virtual bool send_out_parameters(List<Item_param> *sp_params); bool send_out_parameters(List<Item_param> *sp_params) override;
enum enum_protocol_type type() override { return PROTOCOL_BINARY; }; enum enum_protocol_type type() override { return PROTOCOL_BINARY; };
}; };
......
...@@ -65,7 +65,7 @@ class __attribute__((visibility("default"))) ha_maria :public handler ...@@ -65,7 +65,7 @@ class __attribute__((visibility("default"))) ha_maria :public handler
public: public:
ha_maria(handlerton *hton, TABLE_SHARE * table_arg); ha_maria(handlerton *hton, TABLE_SHARE * table_arg);
~ha_maria() {} ~ha_maria() {}
handler *clone(const char *name, MEM_ROOT *mem_root); handler *clone(const char *name, MEM_ROOT *mem_root) override final;
const char *index_type(uint key_number) override final; const char *index_type(uint key_number) override final;
ulonglong table_flags() const override final ulonglong table_flags() const override final
{ return int_table_flags; } { return int_table_flags; }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment