[Groonga-commit] groonga/groonga at 85d39b7 [master] logical_select: fix wrong sortby parameter existence check

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Jul 7 11:57:16 JST 2015


Kouhei Sutou	2015-07-07 11:57:16 +0900 (Tue, 07 Jul 2015)

  New Revision: 85d39b74134d601e474d9c8d32eb8a3c8e015ca6
  https://github.com/groonga/groonga/commit/85d39b74134d601e474d9c8d32eb8a3c8e015ca6

  Message:
    logical_select: fix wrong sortby parameter existence check

  Modified files:
    plugins/sharding/logical_select.rb

  Modified: plugins/sharding/logical_select.rb (+3 -3)
===================================================================
--- plugins/sharding/logical_select.rb    2015-07-06 23:48:53 +0900 (31ee612)
+++ plugins/sharding/logical_select.rb    2015-07-07 11:57:16 +0900 (ce8f169)
@@ -581,12 +581,12 @@ module Groonga
         def add_result_set(result_set)
           return if result_set.empty?
 
-          if @sort_keys
+          if @sort_keys.empty?
+            @result_sets << result_set
+          else
             @unsorted_result_sets << result_set
             sorted_result_set = result_set.sort(@sort_keys)
             @result_sets << sorted_result_set
-          else
-            @result_sets << result_set
           end
         end
       end
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index