Method: QueryHelper::Filter#sql_string

Defined in:
lib/query_helper/filter.rb

#sql_stringObject



28
29
30
31
32
33
34
35
36
37
38
# File 'lib/query_helper/filter.rb', line 28

def sql_string
  case operator_code
  when "in", "notin"
    "#{comparate} #{operator} (:#{bind_variable})"
  when "null"
    "#{comparate} #{operator}"
  else
    "#{comparate} #{operator} :#{bind_variable}"
  end

end