Bug #21056 ndb pushdown equal/setValue error on datetime: Added missing order by

parent 6752861d
...@@ -1783,10 +1783,10 @@ a b ...@@ -1783,10 +1783,10 @@ a b
1 jonas 1 jonas
3 johan 3 johan
set engine_condition_pushdown = off; set engine_condition_pushdown = off;
select auto from t1 where date_time like '1902-02-02 %'; select auto from t1 where date_time like '1902-02-02 %' order by auto;
auto auto
2 2
select auto from t1 where date_time not like '1902-02-02 %'; select auto from t1 where date_time not like '1902-02-02 %' order by auto;
auto auto
3 3
4 4
...@@ -1794,13 +1794,13 @@ set engine_condition_pushdown = on; ...@@ -1794,13 +1794,13 @@ set engine_condition_pushdown = on;
explain select auto from t1 where date_time like '1902-02-02 %'; explain select auto from t1 where date_time like '1902-02-02 %';
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where 1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where
select auto from t1 where date_time like '1902-02-02 %'; select auto from t1 where date_time like '1902-02-02 %' order by auto;
auto auto
2 2
explain select auto from t1 where date_time not like '1902-02-02 %'; explain select auto from t1 where date_time not like '1902-02-02 %';
id select_type table type possible_keys key key_len ref rows Extra id select_type table type possible_keys key key_len ref rows Extra
1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where 1 SIMPLE t1 ALL NULL NULL NULL NULL 3 Using where
select auto from t1 where date_time not like '1902-02-02 %'; select auto from t1 where date_time not like '1902-02-02 %' order by auto;
auto auto
3 3
4 4
......
...@@ -1651,13 +1651,13 @@ select * from t5 where b like '%jo%' order by a; ...@@ -1651,13 +1651,13 @@ select * from t5 where b like '%jo%' order by a;
# bug#21056 ndb pushdown equal/setValue error on datetime # bug#21056 ndb pushdown equal/setValue error on datetime
set engine_condition_pushdown = off; set engine_condition_pushdown = off;
select auto from t1 where date_time like '1902-02-02 %'; select auto from t1 where date_time like '1902-02-02 %' order by auto;
select auto from t1 where date_time not like '1902-02-02 %'; select auto from t1 where date_time not like '1902-02-02 %' order by auto;
set engine_condition_pushdown = on; set engine_condition_pushdown = on;
explain select auto from t1 where date_time like '1902-02-02 %'; explain select auto from t1 where date_time like '1902-02-02 %';
select auto from t1 where date_time like '1902-02-02 %'; select auto from t1 where date_time like '1902-02-02 %' order by auto;
explain select auto from t1 where date_time not like '1902-02-02 %'; explain select auto from t1 where date_time not like '1902-02-02 %';
select auto from t1 where date_time not like '1902-02-02 %'; select auto from t1 where date_time not like '1902-02-02 %' order by auto;
# bug#17421 -1 # bug#17421 -1
drop table t1; drop table t1;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment