[Groonga-commit] droonga/droonga-engine at 082b75d [master] Use default value for allowPragma and allowColumn correctly

Back to archive index

YUKI Hiroshi null+****@clear*****
Tue Oct 7 12:12:30 JST 2014


YUKI Hiroshi	2014-10-07 12:12:30 +0900 (Tue, 07 Oct 2014)

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

  Message:
    Use default value for allowPragma and allowColumn correctly

  Modified files:
    lib/droonga/searcher.rb

  Modified: lib/droonga/searcher.rb (+4 -4)
===================================================================
--- lib/droonga/searcher.rb    2014-10-07 11:50:06 +0900 (77a4df1)
+++ lib/droonga/searcher.rb    2014-10-07 12:12:30 +0900 (851330a)
@@ -275,11 +275,11 @@ module Droonga
             end
             options[:default_operator] = default_operator
           end
-          unless condition["allowPragma"]
-            options[:allow_pragma] = false
+          unless condition["allowPragma"].nil?
+            options[:allow_pragma] = condition["allowPragma"] ? true : false
           end
-          unless condition["allowColumn"]
-            options[:allow_column] = false
+          unless condition["allowColumn"].nil?
+            options[:allow_column] = condition["allowColumn"] ? true : false
           end
           syntax_errors = [
             Groonga::SyntaxError,
-------------- next part --------------
HTML����������������������������...
Download 



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