summaryrefslogtreecommitdiff
path: root/sql/opt_range.h
diff options
context:
space:
mode:
authorunknown <monty@narttu.mysql.fi>2003-05-27 18:40:37 +0300
committerunknown <monty@narttu.mysql.fi>2003-05-27 18:40:37 +0300
commitef6d3a806085efdc138e6e894a832e4330692e64 (patch)
treebc5052caf5ad47985df6d6862e6380f64e895fb2 /sql/opt_range.h
parent1540912eca3b2daee03d78e85b39b3d19c192f15 (diff)
downloadmariadb-git-ef6d3a806085efdc138e6e894a832e4330692e64.tar.gz
ORDER BY optimization
Fixed new bug when reading field types client/mysql.cc: Fixed output for -T libmysql/libmysql.c: Filled missing fields in new MYSQL_FIELD structure Fixed new bug when reading field types mysql-test/r/order_by.result: Result after new order by optimization sql/opt_range.cc: New ORDER BY optimization sql/opt_range.h: New ORDER BY optimization sql/set_var.cc: Speed optimization sql/sql_select.cc: New ORDER BY optimization This alllows MySQL to change a ref/range index from (a,b) to (a,c) when 'b' was not used to find rows and one did ORDER BY a,c or ORDER BY c
Diffstat (limited to 'sql/opt_range.h')
-rw-r--r--sql/opt_range.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/opt_range.h b/sql/opt_range.h
index bc56fb99b4b..00736bfc22f 100644
--- a/sql/opt_range.h
+++ b/sql/opt_range.h
@@ -70,7 +70,7 @@ class QUICK_SELECT {
public:
bool next,dont_free;
int error;
- uint index,max_used_key_length;
+ uint index, max_used_key_length, used_key_parts;
TABLE *head;
handler *file;
byte *record;