Naoya Murakami
null+****@clear*****
Fri Jul 14 07:42:38 JST 2017
Naoya Murakami 2017-07-14 07:42:38 +0900 (Fri, 14 Jul 2017) New Revision: 789e7375166b03a18858f4f7dc202df987613f43 https://github.com/groonga/groonga/commit/789e7375166b03a18858f4f7dc202df987613f43 Merged a0a4637: Merge pull request #740 from naoa/between-index-column Message: mrb: support directly index column in between Modified files: lib/mrb/scripts/expression_tree/function_call.rb Modified: lib/mrb/scripts/expression_tree/function_call.rb (+8 -3) =================================================================== --- lib/mrb/scripts/expression_tree/function_call.rb 2017-07-14 07:04:51 +0900 (dd61480) +++ lib/mrb/scripts/expression_tree/function_call.rb 2017-07-14 07:42:38 +0900 (0c7438d) @@ -21,9 +21,14 @@ module Groonga column, min, min_border, max, max_border = @arguments - index_info = column.column.find_index(Operator::CALL) - return table.size if index_info.nil? - index_column = index_info.index + if column.is_a?(Groonga::ExpressionTree::IndexColumn) + index_column = column.object + else + index_info = column.column.find_index(Operator::CALL) + return table.size if index_info.nil? + index_column = index_info.index + end + while index_column.is_a?(Groonga::Accessor) if index_column.have_next? index_column = index_column.next -------------- next part -------------- HTML����������������������������... Download