Module: Sequel::EmptyArrayIgnoreNulls
- Defined in:
- lib/sequel/extensions/empty_array_ignore_nulls.rb
Instance Method Summary collapse
-
#empty_array_value(op, cols) ⇒ Object
Use a simple expression that is always true or false, never NULL.
Instance Method Details
#empty_array_value(op, cols) ⇒ Object
Use a simple expression that is always true or false, never NULL.
27 28 29 |
# File 'lib/sequel/extensions/empty_array_ignore_nulls.rb', line 27 def empty_array_value(op, cols) {1 => ((op == :IN) ? 0 : 1)} end |