mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
workaround for IN's special treatment of first argument. Not for 4.1
This commit is contained in:
@ -253,4 +253,10 @@ explain select * from t1, t1 t2 where t1.y = 2 and t2.x >= 0 and t2.x <= t1.y;
|
||||
table type possible_keys key key_len ref rows Extra
|
||||
t1 ref y y 5 const 1 Using where
|
||||
t2 range x x 5 NULL 2 Using where
|
||||
explain select count(*) from t1 where x in (1);
|
||||
table type possible_keys key key_len ref rows Extra
|
||||
t1 range x x 5 NULL 1 Using where; Using index
|
||||
explain select count(*) from t1 where x in (1,2);
|
||||
table type possible_keys key key_len ref rows Extra
|
||||
t1 range x x 5 NULL 2 Using where; Using index
|
||||
drop table t1;
|
||||
|
Reference in New Issue
Block a user