Navigation Menu

Skip to content

Commit

Permalink
groonga: Parse filter correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
piroor committed Apr 24, 2014
1 parent 463cc22 commit c15dca6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/droonga/plugins/groonga/delete.rb
Expand Up @@ -79,7 +79,8 @@ def delete_record(table_name, parameters={})
else
filter = ::Groonga::Expression.new(:context => @context)
begin
filter.parse(parameters[:filter].dump, :syntax => :script)
filter.define_variable(:domain => table)
filter.parse(parameters[:filter], :syntax => :script)
records = table.select(filter)
records.each do |record|
record.delete
Expand Down

0 comments on commit c15dca6

Please sign in to comment.