Commit cc524b4f authored by mskold@mysql.com's avatar mskold@mysql.com

Removed bug introduced when implementing support for IN and BETWEEN

parent e8613e53
...@@ -1760,7 +1760,7 @@ id select_type table type possible_keys key key_len ref rows Extra ...@@ -1760,7 +1760,7 @@ id select_type table type possible_keys key key_len ref rows Extra
explain explain
select * from t2 where (attr1 < 2) = (attr2 < 2) order by pk1; select * from t2 where (attr1 < 2) = (attr2 < 2) order by pk1;
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 t2 ALL NULL NULL NULL NULL 6 Using where with pushed condition; Using filesort 1 SIMPLE t2 ALL NULL NULL NULL NULL 6 Using where; Using filesort
explain explain
select * from t3 left join t4 on t4.attr2 = t3.attr2 where t4.attr1 > 1 and t4.attr3 < 5 or t4.attr1 is null order by t4.pk1; select * from t3 left join t4 on t4.attr2 = t3.attr2 where t4.attr1 > 1 and t4.attr3 < 5 or t4.attr1 is null order by t4.pk1;
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
......
...@@ -6476,7 +6476,6 @@ void ndb_serialize_cond(const Item *item, void *arg) ...@@ -6476,7 +6476,6 @@ void ndb_serialize_cond(const Item *item, void *arg)
context->expect_field_result(REAL_RESULT); context->expect_field_result(REAL_RESULT);
context->expect_field_result(INT_RESULT); context->expect_field_result(INT_RESULT);
context->expect_field_result(DECIMAL_RESULT); context->expect_field_result(DECIMAL_RESULT);
context->expect(Item::FUNC_ITEM);
break; break;
} }
case(Item_func::NE_FUNC): { case(Item_func::NE_FUNC): {
...@@ -6493,7 +6492,6 @@ void ndb_serialize_cond(const Item *item, void *arg) ...@@ -6493,7 +6492,6 @@ void ndb_serialize_cond(const Item *item, void *arg)
context->expect_field_result(REAL_RESULT); context->expect_field_result(REAL_RESULT);
context->expect_field_result(INT_RESULT); context->expect_field_result(INT_RESULT);
context->expect_field_result(DECIMAL_RESULT); context->expect_field_result(DECIMAL_RESULT);
context->expect(Item::FUNC_ITEM);
break; break;
} }
case(Item_func::LT_FUNC): { case(Item_func::LT_FUNC): {
...@@ -6510,7 +6508,6 @@ void ndb_serialize_cond(const Item *item, void *arg) ...@@ -6510,7 +6508,6 @@ void ndb_serialize_cond(const Item *item, void *arg)
context->expect_field_result(REAL_RESULT); context->expect_field_result(REAL_RESULT);
context->expect_field_result(INT_RESULT); context->expect_field_result(INT_RESULT);
context->expect_field_result(DECIMAL_RESULT); context->expect_field_result(DECIMAL_RESULT);
context->expect(Item::FUNC_ITEM);
break; break;
} }
case(Item_func::LE_FUNC): { case(Item_func::LE_FUNC): {
...@@ -6527,7 +6524,6 @@ void ndb_serialize_cond(const Item *item, void *arg) ...@@ -6527,7 +6524,6 @@ void ndb_serialize_cond(const Item *item, void *arg)
context->expect_field_result(REAL_RESULT); context->expect_field_result(REAL_RESULT);
context->expect_field_result(INT_RESULT); context->expect_field_result(INT_RESULT);
context->expect_field_result(DECIMAL_RESULT); context->expect_field_result(DECIMAL_RESULT);
context->expect(Item::FUNC_ITEM);
break; break;
} }
case(Item_func::GE_FUNC): { case(Item_func::GE_FUNC): {
...@@ -6544,7 +6540,6 @@ void ndb_serialize_cond(const Item *item, void *arg) ...@@ -6544,7 +6540,6 @@ void ndb_serialize_cond(const Item *item, void *arg)
context->expect_field_result(REAL_RESULT); context->expect_field_result(REAL_RESULT);
context->expect_field_result(INT_RESULT); context->expect_field_result(INT_RESULT);
context->expect_field_result(DECIMAL_RESULT); context->expect_field_result(DECIMAL_RESULT);
context->expect(Item::FUNC_ITEM);
break; break;
} }
case(Item_func::GT_FUNC): { case(Item_func::GT_FUNC): {
...@@ -6561,7 +6556,6 @@ void ndb_serialize_cond(const Item *item, void *arg) ...@@ -6561,7 +6556,6 @@ void ndb_serialize_cond(const Item *item, void *arg)
context->expect_field_result(REAL_RESULT); context->expect_field_result(REAL_RESULT);
context->expect_field_result(INT_RESULT); context->expect_field_result(INT_RESULT);
context->expect_field_result(DECIMAL_RESULT); context->expect_field_result(DECIMAL_RESULT);
context->expect(Item::FUNC_ITEM);
break; break;
} }
case(Item_func::LIKE_FUNC): { case(Item_func::LIKE_FUNC): {
......
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