Navigation Menu

Skip to content

Commit

Permalink
Add the number of arguments check
Browse files Browse the repository at this point in the history
There is not key item for no argument function.
  • Loading branch information
kou committed Mar 24, 2015
1 parent 54fc423 commit 6ebabe3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ha_mroonga.cpp
Expand Up @@ -9306,6 +9306,9 @@ void ha_mroonga::check_count_skip(key_part_map start_key_part_map,

if (where->type() == Item::FUNC_ITEM) {
Item_func *func_item = static_cast<Item_func *>(where);
if (func_item->arg_count == 0) {
break;
}
target = func_item->key_item();
where = where->next;
if (func_item->arguments()[0] == where) {
Expand Down

0 comments on commit 6ebabe3

Please sign in to comment.