Failed on FormData.find_all_group_by_url #4

Open
divineforest opened this Issue Oct 5, 2010 · 0 comments

Comments

Projects
None yet
1 participant

Postgres failed on this SQL:
SELECT * FROM "form_datas" GROUP BY id;
while it can not use * with GROUP BY. Fixed changing

find(:all, :group => 'url')
to
find(:all, :group => 'url', :select => 'url')

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment