mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
between range optimization bug (between with const on one end only)
This commit is contained in:
@ -232,7 +232,7 @@ update t1 set y=x;
|
||||
explain select * from t1, t1 t2 where t1.y = 2 and t2.x between 7 and t1.y+0;
|
||||
table type possible_keys key key_len ref rows Extra
|
||||
t1 ref y y 5 const 1 Using where
|
||||
t2 ALL x NULL NULL NULL 9 Using where
|
||||
t2 range x x 5 NULL 4 Using where
|
||||
explain select * from t1, t1 t2 where t1.y = 2 and t2.x >= 7 and t2.x <= t1.y+0;
|
||||
table type possible_keys key key_len ref rows Extra
|
||||
t1 ref y y 5 const 1 Using where
|
||||
|
Reference in New Issue
Block a user