1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

table.cc, sql_select.cc:

Limit the fix for bug 28591 to InnoDB only
This commit is contained in:
gkodinov/kgeorge@magare.gmz
2007-07-23 06:26:57 +03:00
parent 7402fd6e79
commit bc1a6ba954
2 changed files with 3 additions and 1 deletions

View File

@ -12033,6 +12033,7 @@ static int test_if_order_by_key(ORDER *order, TABLE *table, uint idx,
*/
if (!on_primary_key &&
(table->file->table_flags() & HA_PRIMARY_KEY_IN_READ_INDEX) &&
table->s->db_type == DB_TYPE_INNODB &&
table->s->primary_key != MAX_KEY)
{
on_primary_key= TRUE;