diff options
author | gshchepa/uchum@gleb.loc <> | 2007-07-26 03:33:43 +0500 |
---|---|---|
committer | gshchepa/uchum@gleb.loc <> | 2007-07-26 03:33:43 +0500 |
commit | bb22e3667e1a267c161789e9a1e2638f5a93ff86 (patch) | |
tree | 9586be2beae68dcf0a316792398609129103c820 /sql/table.cc | |
parent | 4c208499a409d9e558ca019e9e101115d801bab7 (diff) | |
parent | 2c9eb1638be925b2976459a6d3c1deff0fb91fbe (diff) | |
download | mariadb-git-bb22e3667e1a267c161789e9a1e2638f5a93ff86.tar.gz |
Merge gleb.loc:/home/uchum/work/bk/5.0
into gleb.loc:/home/uchum/work/bk/5.0-opt
Diffstat (limited to 'sql/table.cc')
-rw-r--r-- | sql/table.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sql/table.cc b/sql/table.cc index f24f5c6fbcc..ce894e6910f 100644 --- a/sql/table.cc +++ b/sql/table.cc @@ -780,7 +780,12 @@ int openfrm(THD *thd, const char *name, const char *alias, uint db_stat, the primary key, then we can use any key to find this column */ if (ha_option & HA_PRIMARY_KEY_IN_READ_INDEX) + { field->part_of_key= share->keys_in_use; + if (share->db_type == DB_TYPE_INNODB && + field->part_of_sortkey.is_set(key)) + field->part_of_sortkey= share->keys_in_use; + } } if (field->key_length() != key_part->length) { |