Kouhei Sutou
null+****@clear*****
Tue Dec 20 15:24:33 JST 2016
Kouhei Sutou 2016-12-20 15:24:33 +0900 (Tue, 20 Dec 2016) New Revision: 8b00ecd20817db9095d3e52477c2f130744d7593 https://github.com/groonga/groonga-command-parser/commit/8b00ecd20817db9095d3e52477c2f130744d7593 Message: Create load values parser when it's needed Modified files: lib/groonga/command/parser.rb Modified: lib/groonga/command/parser.rb (+3 -1) =================================================================== --- lib/groonga/command/parser.rb 2016-12-20 15:12:54 +0900 (07416b1) +++ lib/groonga/command/parser.rb 2016-12-20 15:24:33 +0900 (894f028) @@ -122,7 +122,6 @@ module Groonga def initialize reset initialize_hooks - initialize_load_values_parser end # Streaming parsing command. @@ -262,6 +261,7 @@ module Groonga on_load_columns(@command, @command.columns) end if @command[:values] + initialize_load_values_parser @load_values_parser << @command[:values] reset else @@ -271,6 +271,7 @@ module Groonga else @command.original_source << "\n" @loading = true + initialize_load_values_parser end end else @@ -339,6 +340,7 @@ module Groonga @command = nil @loading = false @buffer = "".force_encoding("ASCII-8BIT") + @load_values_parser = nil end def initialize_hooks -------------- next part -------------- HTML����������������������������... Télécharger