Class: Sequel::SQL::BooleanExpression

Inherits:
Object
  • Object
show all
Defined in:
lib/sequel_opal_runtime_patches.rb

Class Method Summary collapse

Class Method Details

.__homura_orig_from_value_pairObject



125
# File 'lib/sequel_opal_runtime_patches.rb', line 125

alias_method :__homura_orig_from_value_pair, :from_value_pair

.from_value_pair(l, r) ⇒ Object



127
128
129
130
131
132
133
134
# File 'lib/sequel_opal_runtime_patches.rb', line 127

def from_value_pair(l, r)
  if r.is_a?(::String) &&
     !r.is_a?(::Sequel::LiteralString) &&
     !r.is_a?(::Sequel::SQL::Blob)
    r = ::HomuraSqlStringLiteral.new(r)
  end
  __homura_orig_from_value_pair(l, r)
end