Skip to content
Snippets Groups Projects
Commit 660f4934 authored by Alex Reisner's avatar Alex Reisner
Browse files

Merge branch 'id_only_option'

parents 25db88d6 3e43ea37
No related branches found
No related tags found
No related merge requests found
......@@ -157,8 +157,10 @@ module Geocoder::Store
##
# Generate the SELECT clause.
#
def select_clause(columns, distance, bearing = nil)
if columns == :geo_only
def select_clause(columns, distance = nil, bearing = nil)
if columns == :id_only
return full_column_name(primary_key)
elsif columns == :geo_only
clause = ""
else
clause = (columns || full_column_name("*")) + ", "
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment