class Geocoder::Lookup::MaxmindLocal

def format_result(query, attr_names)

def format_result(query, attr_names)
  if r = ActiveRecord::Base.connection.execute(query).first
    r = r.values if r.is_a?(Hash) # some db adapters return Hash, some Array
    [Hash[*attr_names.zip(r).flatten]]
  else
    []
  end
end