summaryrefslogtreecommitdiff
path: root/client
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 /client
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 'client')
-rw-r--r--client/mysql.cc5
1 files changed, 2 insertions, 3 deletions
diff --git a/client/mysql.cc b/client/mysql.cc
index f421756f0b4..812673d34c2 100644
--- a/client/mysql.cc
+++ b/client/mysql.cc
@@ -1793,9 +1793,8 @@ print_field_types(MYSQL_RES *result)
MYSQL_FIELD *field;
while ((field = mysql_fetch_field(result)))
{
- tee_fprintf(PAGER,"%s '%s' %d %d %d %d %d\n",
- field->name,
- field->table ? "" : field->table,
+ tee_fprintf(PAGER,"'%s.%s.%s.%s' %d %d %d %d %d\n",
+ field->catalog, field->db, field->table, field->name,
(int) field->type,
field->length, field->max_length,
field->flags, field->decimals);