Navigation Menu

Skip to content

Commit

Permalink
Just check table objects
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Jan 3, 2015
1 parent 2a65222 commit 6b360cd
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion lib/expr.c
Expand Up @@ -4663,7 +4663,10 @@ scan_info_build_match(grn_ctx *ctx, scan_info *si)
ec += offset;
}
break;
default :
case GRN_TABLE_NO_KEY :
case GRN_TABLE_HASH_KEY :
case GRN_TABLE_PAT_KEY :
case GRN_TABLE_DAT_KEY :
{
char name[GRN_TABLE_MAX_KEY_SIZE];
int name_size;
Expand Down
2 changes: 1 addition & 1 deletion lib/mrb/scripts/scan_info_data.rb
Expand Up @@ -127,7 +127,7 @@ def match_resolve_index_expression(expression)
i += 2
end
put_index(value, section_id, code.weight)
else
when Table
raise ErrorMessage, "invalid match target: <#{value.name}>"
end
i += 1
Expand Down

0 comments on commit 6b360cd

Please sign in to comment.