Method: HDB#normalizeWhereFormat
- Defined in:
- lib/hdb/hdb.rb
#normalizeWhereFormat(where, operator = 'AND') ⇒ Object
122 123 124 125 126 |
# File 'lib/hdb/hdb.rb', line 122 def normalizeWhereFormat(where, operator = 'AND') where = self.quote(where) if where.class == Hash where = where.join(" #{operator} ") if(where.class == Array || where.class == Hash) return where end |