[Groonga-commit] droonga/droonga-engine at c15dca6 [master] groonga: Parse filter correctly

Back to archive index

YUKI Hiroshi null+****@clear*****
Thu Apr 24 15:27:07 JST 2014


YUKI Hiroshi	2014-04-24 15:27:07 +0900 (Thu, 24 Apr 2014)

  New Revision: c15dca69bd2059a1dddff9de7cd0256bcac0e777
  https://github.com/droonga/droonga-engine/commit/c15dca69bd2059a1dddff9de7cd0256bcac0e777

  Message:
    groonga: Parse filter correctly

  Modified files:
    lib/droonga/plugins/groonga/delete.rb

  Modified: lib/droonga/plugins/groonga/delete.rb (+2 -1)
===================================================================
--- lib/droonga/plugins/groonga/delete.rb    2014-04-24 15:20:49 +0900 (0389f22)
+++ lib/droonga/plugins/groonga/delete.rb    2014-04-24 15:27:07 +0900 (353c14c)
@@ -79,7 +79,8 @@ module Droonga
             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
-------------- next part --------------
HTML����������������������������...
Download 



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