[Groonga-commit] droonga/droonga-engine at 8314306 [master] select: support "a , b" style (space before comma) for output_columns

Back to archive index

Kouhei Sutou null+****@clear*****
Tue May 27 18:15:59 JST 2014


Kouhei Sutou	2014-05-27 18:15:59 +0900 (Tue, 27 May 2014)

  New Revision: 83143067919fafd86c45c3c36c4758a0f3fc0f77
  https://github.com/droonga/droonga-engine/commit/83143067919fafd86c45c3c36c4758a0f3fc0f77

  Message:
    select: support "a ,b" style (space before comma) for output_columns

  Modified files:
    lib/droonga/plugins/groonga/select.rb

  Modified: lib/droonga/plugins/groonga/select.rb (+1 -1)
===================================================================
--- lib/droonga/plugins/groonga/select.rb    2014-05-27 18:13:18 +0900 (75b2f27)
+++ lib/droonga/plugins/groonga/select.rb    2014-05-27 18:15:59 +0900 (91d74a9)
@@ -27,7 +27,7 @@ module Droonga
             @result_name = @table + "_result"
 
             output_columns = select_request["output_columns"] || ""
-            attributes = output_columns.split(/, */)
+            attributes = output_columns.split(/\s*,\s*/)
             offset = (select_request["offset"] || "0").to_i
             limit = (select_request["limit"] || "10").to_i
 
-------------- next part --------------
HTML����������������������������...
Télécharger 



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