summaryrefslogtreecommitdiff
path: root/mysql-test/r/distinct.result
diff options
context:
space:
mode:
authorunknown <kostja@oak.local>2003-09-15 22:21:39 +0400
committerunknown <kostja@oak.local>2003-09-15 22:21:39 +0400
commitdb03c7e89f6ff78f04bbab2fdc3b136525fdb8e3 (patch)
treee525d94eb1ae909e6f88230278d3c4814cbc939d /mysql-test/r/distinct.result
parentcdbc2fe43a0d9d19bdaec304d841fe45e3e91551 (diff)
downloadmariadb-git-db03c7e89f6ff78f04bbab2fdc3b136525fdb8e3.tar.gz
Fixed bug in the optimiser for FULL TABLE SCAN case:
to estimate correctly cost of full table scan we should take into account rows read and skipped on each iteration. mysql-test/r/distinct.result: Fixed test suite: now full scan is used less often mysql-test/r/join_outer.result: Fixed test suite: now full scan is used less often mysql-test/r/select_safe.result: Fixed test suite: now full scan is used less often
Diffstat (limited to 'mysql-test/r/distinct.result')
-rw-r--r--mysql-test/r/distinct.result6
1 files changed, 3 insertions, 3 deletions
diff --git a/mysql-test/r/distinct.result b/mysql-test/r/distinct.result
index 1dbccb65748..da0c6a5eb72 100644
--- a/mysql-test/r/distinct.result
+++ b/mysql-test/r/distinct.result
@@ -173,9 +173,9 @@ INSERT INTO t2 values (1),(2),(3);
INSERT INTO t3 VALUES (1,'1'),(2,'2'),(1,'1'),(2,'2');
explain SELECT distinct t3.a FROM t3,t2,t1 WHERE t3.a=t1.b AND t1.a=t2.a;
table type possible_keys key key_len ref rows Extra
-t3 index a a 5 NULL 6 Using index; Using temporary
-t2 index a a 4 NULL 5 Using index; Distinct
-t1 eq_ref PRIMARY PRIMARY 4 t2.a 1 Using where; Distinct
+t2 index a a 4 NULL 5 Using index; Using temporary
+t1 eq_ref PRIMARY PRIMARY 4 t2.a 1
+t3 index a a 5 NULL 5 Using where; Using index
SELECT distinct t3.a FROM t3,t2,t1 WHERE t3.a=t1.b AND t1.a=t2.a;
a
1