Class: AdminData::Search::OracleSpecific

Inherits:
Dbbase
  • Object
show all
Defined in:
lib/admin_data/search.rb

Instance Method Summary collapse

Methods inherited from Dbbase

#initialize, #like_operator

Constructor Details

This class inherits a constructor from AdminData::Search::Dbbase

Instance Method Details

#operandsObject



37
38
39
40
# File 'lib/admin_data/search.rb', line 37

def operands
  result = super
  %w(contains is_exactly does_not_contain).include?(@operator) ?  result.upcase : result
end

#sql_field_nameObject



32
33
34
35
# File 'lib/admin_data/search.rb', line 32

def sql_field_name
  result = super
  %w(contains is_exactly does_not_contain).include?(@operator) ?  "upper(#{result})" : result
end