~jlukas79/+junk/mysql-server

« back to all changes in this revision

Viewing changes to storage/myisammrg/myrg_queue.c

manual merge 6.0-main --> 6.0-bka-review

Show diffs side-by-side

added added

removed removed

Lines of Context:
65
65
    }
66
66
  }
67
67
  else
68
 
    my_errno= error= HA_ERR_WRONG_INDEX;
 
68
  {
 
69
    /*
 
70
      inx may be bigger than info->keys if there are no underlying tables
 
71
      defined. In this case we should return empty result. As we check for
 
72
      underlying tables conformance when we open a table, we may not enter
 
73
      this branch with underlying table that has less keys than merge table
 
74
      have.
 
75
    */
 
76
    DBUG_ASSERT(!info->tables);
 
77
    error= my_errno= HA_ERR_END_OF_FILE;
 
78
  }
69
79
  return error;
70
80
}
71
81