Commit 5929e222 authored by Kentoku SHIBA's avatar Kentoku SHIBA

fix evaluating bitmap issue in spider

parent 8e5ae4e4
......@@ -6167,8 +6167,8 @@ void spider_handlersocket_handler::minimum_select_bitmap_create()
{
uint field_index = (*field_p)->field_index;
if (
spider_bit_is_set(spider->searched_bitmap, field_index) |
bitmap_is_set(table->read_set, field_index) |
spider_bit_is_set(spider->searched_bitmap, field_index) ||
bitmap_is_set(table->read_set, field_index) ||
bitmap_is_set(table->write_set, field_index)
) {
spider_set_bit(minimum_select_bitmap, field_index);
......
......@@ -15027,10 +15027,10 @@ void spider_mbase_handler::minimum_select_bitmap_create()
bitmap_is_set(table->write_set, field_index) ?
"TRUE" : "FALSE"));
if (
spider_bit_is_set(spider->ft_discard_bitmap, field_index) &
spider_bit_is_set(spider->ft_discard_bitmap, field_index) &&
(
spider_bit_is_set(spider->searched_bitmap, field_index) |
bitmap_is_set(table->read_set, field_index) |
spider_bit_is_set(spider->searched_bitmap, field_index) ||
bitmap_is_set(table->read_set, field_index) ||
bitmap_is_set(table->write_set, field_index)
)
) {
......
......@@ -12567,8 +12567,8 @@ void spider_oracle_handler::minimum_select_bitmap_create()
{
uint field_index = (*field_p)->field_index;
if (
spider_bit_is_set(spider->searched_bitmap, field_index) |
bitmap_is_set(table->read_set, field_index) |
spider_bit_is_set(spider->searched_bitmap, field_index) ||
bitmap_is_set(table->read_set, field_index) ||
bitmap_is_set(table->write_set, field_index)
) {
spider_set_bit(minimum_select_bitmap, field_index);
......
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