Skip to content
Snippets Groups Projects
Commit cbda51e8 authored by matchu's avatar matchu
Browse files

include table name in GROUP BY on nearby scope so as not to mess up my joins

parent 5c5c0556
No related branches found
No related tags found
No related merge requests found
...@@ -115,7 +115,7 @@ module Geocoder ...@@ -115,7 +115,7 @@ module Geocoder
conditions << obj.id conditions << obj.id
end end
{ {
:group => columns.map{ |c| c.name}.join(','), :group => columns.map{ |c| "#{table_name}.#{c.name}" }.join(','),
:order => options[:order], :order => options[:order],
:limit => options[:limit], :limit => options[:limit],
:offset => options[:offset], :offset => options[:offset],
......
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