Fixes FormData.find_all_group_by_url #6

Open
wants to merge 3 commits into
from

1 participant

@divineforest

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')

divineforest added some commits Oct 6, 2010
@divineforest divineforest Fixed "wrong number of arguments (3 for 2) (ArgumentError)" erorr on …
…application initialization
39fd8b4
@divineforest divineforest Fixes in FormData.find_all_group_by_url:
PGError: ERROR:  column "form_datas.id" must appear in the GROUP BY clause or be used in an aggregate function
: SELECT * FROM "form_datas"  GROUP BY url
PostgreSQL error
93e0a65
@divineforest divineforest 1. Show time in long format
2. Use I18n
4ca1479
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment