summaryrefslogtreecommitdiff
path: root/sql/sql_handler.cc
diff options
context:
space:
mode:
authortimour@mysql.com <>2004-08-27 16:37:13 +0300
committertimour@mysql.com <>2004-08-27 16:37:13 +0300
commite2cd3dd1ce66d59eaea06e18f04a6fa5f1848684 (patch)
tree7af5a09192d2042b9d236d1b98634b8b14be9601 /sql/sql_handler.cc
parenta5f063e0dab5a5c769596894a8d39bed2ab31875 (diff)
downloadmariadb-git-e2cd3dd1ce66d59eaea06e18f04a6fa5f1848684.tar.gz
WL#1724 "Min/Max Optimization for Queries with Group By Clause"
- after-review changes - merged with the source tree from 204-08-27
Diffstat (limited to 'sql/sql_handler.cc')
-rw-r--r--sql/sql_handler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_handler.cc b/sql/sql_handler.cc
index 0df3d617d7f..7cde9ef3907 100644
--- a/sql/sql_handler.cc
+++ b/sql/sql_handler.cc
@@ -333,7 +333,7 @@ int mysql_ha_read(THD *thd, TABLE_LIST *tables,
send_error(thd,ER_OUTOFMEMORY);
goto err;
}
- key_copy(key, table, keyno, key_len);
+ key_copy(key, table->record[0], table->key_info + keyno, key_len);
err=table->file->index_read(table->record[0],
key,key_len,ha_rkey_mode);
mode=rkey_to_rnext[(int)ha_rkey_mode];