diff options
author | unknown <serg@serg.mylan> | 2004-05-15 11:26:58 +0200 |
---|---|---|
committer | unknown <serg@serg.mylan> | 2004-05-15 11:26:58 +0200 |
commit | 36bce251128b8fd300c4a6329d0c2d8f601a14bc (patch) | |
tree | 7511a87efd9dc5060078495d60fc5092288b31ec /sql/sql_table.cc | |
parent | b40430e08cf40d931c511d4d31ea517b7294417b (diff) | |
parent | fdd4717730796ba178cc59c3609e8693ed967105 (diff) | |
download | mariadb-git-36bce251128b8fd300c4a6329d0c2d8f601a14bc.tar.gz |
merged
mysql-test/r/innodb.result:
Auto merged
mysql-test/t/innodb.test:
Auto merged
sql/sql_select.cc:
Auto merged
Diffstat (limited to 'sql/sql_table.cc')
-rw-r--r-- | sql/sql_table.cc | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sql/sql_table.cc b/sql/sql_table.cc index 8d5ec56add9..e017bc7e6b5 100644 --- a/sql/sql_table.cc +++ b/sql/sql_table.cc @@ -684,12 +684,13 @@ int mysql_prepare_table(THD *thd, HA_CREATE_INFO *create_info, while ((key2 = key_iterator2++) != key) { /* - foreign_key_prefix(key, key2) returns 0 if key or key2, or both, is - 'generated', and a generated key is a prefix of the other key. Then we - do not need the generated shorter key. + foreign_key_prefix(key, key2) returns 0 if key or key2, or both, is + 'generated', and a generated key is a prefix of the other key. + Then we do not need the generated shorter key. */ - if (key2->name != ignore_key && key2->type != Key::FOREIGN_KEY && - !foreign_key_prefix(key, key2)) + if ((key2->type != Key::FOREIGN_KEY && + key2->name != ignore_key && + !foreign_key_prefix(key, key2))) { /* TODO: issue warning message */ /* mark that the generated key should be ignored */ |