Navigation Menu

Skip to content

Commit

Permalink
Fix no such method error
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Oct 31, 2017
1 parent 46a9e99 commit afffcfa
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/groonga/command/parser.rb
Expand Up @@ -360,7 +360,11 @@ def initialize_load_values_parser
@load_values_parser.on_consumed = lambda do |consumed|
if @loading
@command.original_source << consumed
@buffer = @buffer[consumed.bytesize..-1]
if @buffer.bytesize == consumed.bytesize
@buffer = "".force_encoding("ASCII-8BIT")
else
@buffer = @buffer[consumed.bytesize..-1]
end
end
end
@load_values_parser.on_end = lambda do |rest|
Expand Down

0 comments on commit afffcfa

Please sign in to comment.