summaryrefslogtreecommitdiff
path: root/mysql-test/main/join.result
diff options
context:
space:
mode:
authorVarun Gupta <varun.gupta@mariadb.com>2020-04-21 12:16:10 +0530
committerVarun Gupta <varun.gupta@mariadb.com>2020-05-01 15:17:10 +0530
commit644d9f38b97b198ec356aadfc390e0fef97c53f0 (patch)
tree841be926c58ac3b8689d856eb482c71f5fdb8bcd /mysql-test/main/join.result
parent7f9dc0d84aeef01747389a3ef074217acdcb2410 (diff)
downloadmariadb-git-644d9f38b97b198ec356aadfc390e0fef97c53f0.tar.gz
MDEV-21480: Unique key using ref access though eq_ref access can be used
For a unique key if all the keyparts are NOT NULL or the predicates involving the keyparts is NULL rejecting, then we can use EQ_REF access instead of ref access with the unique key
Diffstat (limited to 'mysql-test/main/join.result')
-rw-r--r--mysql-test/main/join.result4
1 files changed, 2 insertions, 2 deletions
diff --git a/mysql-test/main/join.result b/mysql-test/main/join.result
index fe6d18f7807..e667eab7eb9 100644
--- a/mysql-test/main/join.result
+++ b/mysql-test/main/join.result
@@ -3333,11 +3333,11 @@ show keys from t1;
Table Non_unique Key_name Seq_in_index Column_name Collation Cardinality Sub_part Packed Null Index_type Comment Index_comment
t1 0 PRIMARY 1 pk A 1010 NULL NULL BTREE
t1 0 a 1 a A 10 NULL NULL YES BTREE
-# t1 must use ref(t1.a=t0.a) and rows must be 1 (and not 45):
+# t1 must use eq_ref(t1.a=t0.a) and rows must be 1 (and not 45):
explain select * from t0,t1 where t0.a=t1.a;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t0 ALL NULL NULL NULL NULL 10 Using where
-1 SIMPLE t1 ref a a 5 test.t0.a 1
+1 SIMPLE t1 eq_ref a a 5 test.t0.a 1
drop table t0,t1;
#
# MDEV-21383: Possible range plan is not used under certain conditions