summaryrefslogtreecommitdiff
path: root/sql/key.cc
diff options
context:
space:
mode:
authormonty@narttu.mysql.fi <>2003-03-19 00:45:44 +0200
committermonty@narttu.mysql.fi <>2003-03-19 00:45:44 +0200
commit386411b5baeb011edec24246d655f28c57905fd5 (patch)
treecb3c86ac4e063681514b1a8ffa9db31b639b9c46 /sql/key.cc
parentc2fa342d537b52f042ea3789f220df6cee6a6a74 (diff)
downloadmariadb-git-386411b5baeb011edec24246d655f28c57905fd5.tar.gz
Allow optimzation of multi-table-update also for InnoDB tables
MEMORY is alias for HEAP for CREATE TABLE ... TYPE=HEAP Fixed bug in multi-table-update where a row could be updated several times
Diffstat (limited to 'sql/key.cc')
-rw-r--r--sql/key.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/key.cc b/sql/key.cc
index 8520dee215e..809c5a164b9 100644
--- a/sql/key.cc
+++ b/sql/key.cc
@@ -275,7 +275,7 @@ bool check_if_key_used(TABLE *table, uint idx, List<Item> &fields)
key is not updated
*/
if (idx != table->primary_key && table->primary_key < MAX_KEY &&
- (table->file->option_flag() & HA_PRIMARY_KEY_IN_READ_INDEX))
+ (table->file->table_flags() & HA_PRIMARY_KEY_IN_READ_INDEX))
return check_if_key_used(table, table->primary_key, fields);
return 0;
}