[Groonga-commit] groonga/groonga-command-parser at 34da639 [master] Use columns -> value order

Back to archive index
Kouhei Sutou null+****@clear*****
Mon Mar 25 10:10:13 JST 2019


Kouhei Sutou	2019-03-25 10:10:13 +0900 (Mon, 25 Mar 2019)

  Revision: 34da6398c7519ff076855497563907a07d1a7637
  https://github.com/groonga/groonga-command-parser/commit/34da6398c7519ff076855497563907a07d1a7637

  Message:
    Use columns -> value order

  Modified files:
    lib/groonga/command/parser/command/groonga-command-convert-format.rb

  Modified: lib/groonga/command/parser/command/groonga-command-convert-format.rb (+3 -3)
===================================================================
--- lib/groonga/command/parser/command/groonga-command-convert-format.rb    2019-03-25 10:09:39 +0900 (dde1f7a)
+++ lib/groonga/command/parser/command/groonga-command-convert-format.rb    2019-03-25 10:10:13 +0900 (d96dffb)
@@ -98,13 +98,13 @@ module Groonga
             parser = Parser.new
             case @format
             when :elasticsearch
+              parser.on_load_columns do |command, columns|
+                command[:columns] ||= columns.join(",")
+              end
               loaded_values = []
               parser.on_load_value do |command, value|
                 loaded_values << value
               end
-              parser.on_load_columns do |command, columns|
-                command[:columns] ||= columns.join(",")
-              end
               parser.on_load_complete do |command|
                 command[:values] = JSON.generate(loaded_values)
                 puts(convert_format(command))
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20190325/ce217db3/attachment.html>


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