Commit 1f12de84 authored by unknown's avatar unknown

fixed part of BUG#1708

(test suite will be with next part)


sql/item_subselect.cc:
  fixed part of BUG#1708
parent c9fa9615
...@@ -166,7 +166,7 @@ void Item_subselect::update_used_tables() ...@@ -166,7 +166,7 @@ void Item_subselect::update_used_tables()
if (!engine->uncacheable()) if (!engine->uncacheable())
{ {
// did all used tables become ststic? // did all used tables become ststic?
if ((used_tables_cache & ~engine->upper_select_const_tables())) if (!(used_tables_cache & ~engine->upper_select_const_tables()))
const_item_cache= 1; const_item_cache= 1;
} }
} }
......
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