summaryrefslogtreecommitdiff
path: root/mysql-test/main/order_by.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/order_by.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/order_by.result')
-rw-r--r--mysql-test/main/order_by.result2
1 files changed, 1 insertions, 1 deletions
diff --git a/mysql-test/main/order_by.result b/mysql-test/main/order_by.result
index ec03e8c5f45..1bb597095db 100644
--- a/mysql-test/main/order_by.result
+++ b/mysql-test/main/order_by.result
@@ -1515,7 +1515,7 @@ WHERE t2.b=14 AND t2.a=t1.a AND 5.1<t2.c AND t1.b='DE'
ORDER BY t2.c LIMIT 1;
id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t2 range a,b,c c 5 NULL 420 Using where
-1 SIMPLE t1 ref a a 39 test.t2.a,const 1 Using where; Using index
+1 SIMPLE t1 eq_ref a a 39 test.t2.a,const 1 Using where; Using index
SELECT d FROM t3 AS t1, t2 AS t2
WHERE t2.b=14 AND t2.a=t1.a AND 5.1<t2.c AND t1.b='DE'
ORDER BY t2.c LIMIT 1;