| Class | Sequel::JDBC::H2::Dataset |
| In: |
lib/sequel/adapters/jdbc/h2.rb
|
| Parent: | JDBC::Dataset |
| ILIKE_PLACEHOLDER | = | ["CAST(".freeze, " AS VARCHAR_IGNORECASE)".freeze].freeze |
Emulate the case insensitive LIKE operator and the bitwise operators.
# File lib/sequel/adapters/jdbc/h2.rb, line 172
172: def complex_expression_sql_append(sql, op, args)
173: case op
174: when :ILIKE, "NOT ILIKE""NOT ILIKE"
175: super(sql, (op == :ILIKE ? :LIKE : "NOT LIKE""NOT LIKE"), [SQL::PlaceholderLiteralString.new(ILIKE_PLACEHOLDER, [args[0]]), args[1]])
176: when :&, :|, :^, :<<, :>>, 'B~''B~'
177: complex_expression_emulate_append(sql, op, args)
178: else
179: super
180: end
181: end