summaryrefslogtreecommitdiff
path: root/sql/sql_class.h
diff options
context:
space:
mode:
authorunknown <marko@hundin.mysql.fi>2004-04-21 13:15:43 +0300
committerunknown <marko@hundin.mysql.fi>2004-04-21 13:15:43 +0300
commitc9e1538298ccfc2172d4db06df54f0f321b7db09 (patch)
treeae59a3c9912d8e259bde8cadb1f3c324bda1e419 /sql/sql_class.h
parentfd6ae5aa21906a221caf8fd34aabbaee1ef6a447 (diff)
downloadmariadb-git-c9e1538298ccfc2172d4db06df54f0f321b7db09.tar.gz
Introduce keys in child tables corresponding to FOREIGN KEYs
Remove redundant keys in CREATE TABLE and ALTER TABLE mysql-test/r/constraints.result: Remove redundant keys mysql-test/r/create.result: Remove redundant keys mysql-test/r/innodb.result: Remove redundant keys mysql-test/r/range.result: Remove redundant keys mysql-test/t/range.test: Remove redundant keys sql/sql_class.cc: Equality comparison of keys (ignoring name) sql/sql_class.h: Equality comparison of keys (ignoring name) sql/sql_table.cc: Remove redundant keys sql/sql_yacc.yy: Introduce keys in child tables corresponding to FOREIGN KEYs
Diffstat (limited to 'sql/sql_class.h')
-rw-r--r--sql/sql_class.h3
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;