def compose_sql_array(ary)
      statement, *values = ary
      if values.first.is_a?(Hash) and statement =~ /:\w+/
        replace_named_bind_variables(statement, values.first)
      elsif statement.include?('?')
        replace_bind_variables(statement, values)
      else
        statement % values.collect { |value| client.escape(value.to_s) }
      end
    end
def compose_sql_array(ary)
      statement, *values = ary
      if values.first.is_a?(Hash) and statement =~ /:\w+/
        replace_named_bind_variables(statement, values.first)
      elsif statement.include?('?')
        replace_bind_variables(statement, values)
      else
        statement % values.collect { |value| client.escape(value.to_s) }
      end
    end
Accepts an array of conditions.  The array has each value
 sanitized and interpolated into the SQL statement.
 @param [Array] ary
 @example Array
   ["name='%s' and group_id='%s'", "foo'bar", 4]  #=>  "name='foo''bar' and group_id='4'"
 @private