mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Many files:
Fix Bug #1942: do not retrieve all columns in a table if we only need the 'ref' of the row (usually, the PRIMARY KEY) to calculate an ORDER BY
This commit is contained in:
@ -845,7 +845,7 @@ JOIN::optimize()
|
||||
for (uint i_h = const_tables; i_h < tables; i_h++)
|
||||
{
|
||||
TABLE* table_h = join_tab[i_h].table;
|
||||
table_h->file->extra(HA_EXTRA_RETRIEVE_ALL_COLS);
|
||||
table_h->file->extra(HA_EXTRA_RETRIEVE_PRIMARY_KEY);
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
Reference in New Issue
Block a user