From 066d55c0c09d589d17bf466682134af50cb59e14 Mon Sep 17 00:00:00 2001 From: "monty@donna.mysql.com" <> Date: Tue, 29 Aug 2000 12:31:01 +0300 Subject: Bug fixes for 3.23.23 --- sql/opt_range.cc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'sql/opt_range.cc') diff --git a/sql/opt_range.cc b/sql/opt_range.cc index 4f1abf9b685..25ee26dbdbd 100644 --- a/sql/opt_range.cc +++ b/sql/opt_range.cc @@ -14,6 +14,16 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +/* + TODO: + Fix that MAYBE_KEY are stored in the tree so that we can detect use + of full hash keys for queries like: + + select s.id, kws.keyword_id from sites as s,kws where s.id=kws.site_id and kws.keyword_id in (204,205); + +*/ + + #ifdef __GNUC__ #pragma implementation // gcc: Class implementation @@ -557,7 +567,7 @@ SEL_ARG *SEL_ARG::clone_tree() ** Returns: ** -1 if impossible select ** 0 if can't use quick_select -** 1 if found usably range +** 1 if found usable range ** Updates the following in the select parameter: ** needed_reg ; Bits for keys with may be used if all prev regs are read ** quick ; Parameter to use when reading records. -- cgit v1.2.1