diff options
author | timour@mysql.com <> | 2004-08-27 16:37:13 +0300 |
---|---|---|
committer | timour@mysql.com <> | 2004-08-27 16:37:13 +0300 |
commit | e2cd3dd1ce66d59eaea06e18f04a6fa5f1848684 (patch) | |
tree | 7af5a09192d2042b9d236d1b98634b8b14be9601 /sql/handler.cc | |
parent | a5f063e0dab5a5c769596894a8d39bed2ab31875 (diff) | |
download | mariadb-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.cc | 3 |
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); |