summaryrefslogtreecommitdiff
path: root/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/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/handler.cc')
-rw-r--r--sql/handler.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/sql/handler.cc b/sql/handler.cc
index 9342d20ec24..e1125653228 100644
--- a/sql/handler.cc
+++ b/sql/handler.cc
@@ -984,7 +984,8 @@ longlong handler::get_auto_increment()
else
{
byte key[MAX_KEY_LENGTH];
- key_copy(key,table,table->next_number_index,
+ key_copy(key, table->record[0],
+ table->key_info + table->next_number_index,
table->next_number_key_offset);
error=index_read(table->record[1], key, table->next_number_key_offset,
HA_READ_PREFIX_LAST);