diff options
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r-- | sql/sql_class.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sql/sql_class.h b/sql/sql_class.h index d5eb7a9fd0e..a2094d8fe7c 100644 --- a/sql/sql_class.h +++ b/sql/sql_class.h @@ -210,6 +210,7 @@ public: const char *field_name; uint length; key_part_spec(const char *name,uint len=0) :field_name(name), length(len) {} + bool operator==(const key_part_spec& other) const; }; @@ -245,6 +246,8 @@ public: :type(type_par), algorithm(alg_par), columns(cols), name(name_arg) {} ~Key() {} + /* Equality comparison of keys (ignoring name) */ + bool operator==(Key& other); }; class Table_ident; |