summaryrefslogtreecommitdiff
path: root/sql/table.cc
diff options
context:
space:
mode:
authorunknown <sergefp@mysql.com>2007-07-26 20:52:53 +0400
committerunknown <sergefp@mysql.com>2007-07-26 20:52:53 +0400
commit9206f6847742a208500da660a2e76306e3fadae3 (patch)
treee329846ca4795ac7e29eba12011f218496014ad8 /sql/table.cc
parent935ce76278477061d07b8e9b441762e90e781e34 (diff)
downloadmariadb-git-9206f6847742a208500da660a2e76306e3fadae3.tar.gz
BUG#28591: make the fix work for BDB tables too:
- make ha_berkeley::cmp_ref() take into account that auto-generated PKs are stored in LSB-first order. - Remove the temporary code that made the bugfix work for innodb only mysql-test/r/bdb.result: Adjust test-results. sql/ha_berkeley.cc: BUG#28591: make the fix work for BDB tables too: - make ha_berkeley::cmp_ref() take into account that auto-generated PKs are stored in LSB-first order. sql/sql_select.cc: BUG#28591: Remove "innodb only" clause as the fix now works for BDB too sql/table.cc: BUG#28591: Remove "innodb only" clause as the fix now works for BDB too
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 ce894e6910f..18a395d69af 100644
--- a/sql/table.cc
+++ b/sql/table.cc
@@ -782,8 +782,7 @@ int openfrm(THD *thd, const char *name, const char *alias, uint db_stat,
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))
+ if (field->part_of_sortkey.is_set(key))
field->part_of_sortkey= share->keys_in_use;
}
}