[Groonga-commit] groonga/groonga-command-parser at afffcfa [master] Fix no such method error

Back to archive index

Kouhei Sutou null+****@clear*****
Tue Oct 31 12:26:45 JST 2017


Kouhei Sutou	2017-10-31 12:26:45 +0900 (Tue, 31 Oct 2017)

  New Revision: afffcfa8d148688229ff09b0b3d33637eddc2d6a
  https://github.com/groonga/groonga-command-parser/commit/afffcfa8d148688229ff09b0b3d33637eddc2d6a

  Message:
    Fix no such method error

  Modified files:
    lib/groonga/command/parser.rb

  Modified: lib/groonga/command/parser.rb (+5 -1)
===================================================================
--- lib/groonga/command/parser.rb    2017-10-31 12:12:01 +0900 (945222c)
+++ lib/groonga/command/parser.rb    2017-10-31 12:26:45 +0900 (f1d1fe3)
@@ -360,7 +360,11 @@ module Groonga
         @load_values_parser.on_consumed = lambda do |consumed|
           if @loading
             @command.original_source << consumed
-            @buffer = @buffer[consumed.bytesize..-1]
+            if****@buffe***** == consumed.bytesize
+              @buffer = "".force_encoding("ASCII-8BIT")
+            else
+              @buffer = @buffer[consumed.bytesize..-1]
+            end
           end
         end
         @load_values_parser.on_end = lambda do |rest|
-------------- next part --------------
HTML����������������������������...
URL: https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20171031/6dbbc4ad/attachment-0001.htm 



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