summaryrefslogtreecommitdiff
path: root/sql/sql_select.cc
diff options
context:
space:
mode:
authorunknown <pekka@mysql.com>2005-04-01 10:13:37 +0200
committerunknown <pekka@mysql.com>2005-04-01 10:13:37 +0200
commitcb1bdf4d84221312258dd8451f58c06337ff108d (patch)
tree748a9a8f5a64181143501a3ccc782f1dfa1af35f /sql/sql_select.cc
parent5b0c75259c0b62a0a8efc4964fb70816e1d1954e (diff)
parent8ef1afbaa4ba0c639f2ecf47853086e783cc1efa (diff)
downloadmariadb-git-cb1bdf4d84221312258dd8451f58c06337ff108d.tar.gz
Merge
mysql-test/r/group_by.result: Auto merged ndb/src/kernel/blocks/dbacc/DbaccMain.cpp: Auto merged scripts/make_win_src_distribution.sh: Auto merged sql/item.cc: Auto merged sql/item.h: Auto merged sql/item_subselect.h: Auto merged sql/sql_select.cc: Auto merged ndb/src/kernel/blocks/dbdict/Dbdict.cpp: merge sql/item_cmpfunc.cc: merge support-files/mysql.server.sh: merge
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r--sql/sql_select.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc
index 257f0f3c79a..0c00d947508 100644
--- a/sql/sql_select.cc
+++ b/sql/sql_select.cc
@@ -10580,8 +10580,9 @@ test_if_skip_sort_order(JOIN_TAB *tab,ORDER *order,ha_rows select_limit,
/*
We'll use ref access method on key new_ref_key. In general case
the index search tuple for new_ref_key will be different (e.g.
- when one of the indexes only covers prefix of the field, see
- BUG#9213 in group_by.test).
+ when one index is defined as (part1, part2, ...) and another as
+ (part1, part2(N), ...) and the WHERE clause contains
+ "part1 = const1 AND part2=const2".
So we build tab->ref from scratch here.
*/
KEYUSE *keyuse= tab->keyuse;