1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-01 03:47:19 +03:00

Introduce keys in child tables corresponding to FOREIGN KEYs

Remove redundant keys in CREATE TABLE and ALTER TABLE
This commit is contained in:
marko@hundin.mysql.fi
2004-04-21 13:15:43 +03:00
parent ecfe6ebb59
commit df5336a3cc
9 changed files with 68 additions and 48 deletions

View File

@ -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;