summaryrefslogtreecommitdiff
path: root/sql/table.cc
diff options
context:
space:
mode:
authorgshchepa/uchum@gleb.loc <>2007-07-27 13:38:11 +0500
committergshchepa/uchum@gleb.loc <>2007-07-27 13:38:11 +0500
commite6c7e7d63073d359cfedf6ece1ce56e2e71f903a (patch)
tree6bf1199047cde5a35117eb3dc03eaf6986ee3fe0 /sql/table.cc
parent1339cdb75ac184aaad5e0cb1b9ed71d0801502cc (diff)
parent3301955b6eb841802dc17b7492fe7321891bb672 (diff)
downloadmariadb-git-e6c7e7d63073d359cfedf6ece1ce56e2e71f903a.tar.gz
Merge gleb.loc:/home/uchum/work/bk/5.0-opt
into gleb.loc:/home/uchum/work/bk/5.1-opt
Diffstat (limited to 'sql/table.cc')
-rw-r--r--sql/table.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/sql/table.cc b/sql/table.cc
index e6f9b1086c7..a445e2d2816 100644
--- a/sql/table.cc
+++ b/sql/table.cc
@@ -1351,8 +1351,7 @@ static int open_binary_frm(THD *thd, TABLE_SHARE *share, uchar *head,
if (ha_option & HA_PRIMARY_KEY_IN_READ_INDEX)
{
field->part_of_key= share->keys_in_use;
- if (ha_legacy_type(share->db_type()) == DB_TYPE_INNODB &&
- field->part_of_sortkey.is_set(key))
+ if (field->part_of_sortkey.is_set(key))
field->part_of_sortkey= share->keys_in_use;
}
}