From a7628099de796a2db2c18e946dab319abd0fcba2 Mon Sep 17 00:00:00 2001 From: Soutaro Matsumoto Date: Fri, 25 Sep 2015 00:30:22 +0900 Subject: Qualify column names in calculation Column names inserted via `group` have to be qualified with table name. --- activerecord/CHANGELOG.md | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'activerecord/CHANGELOG.md') diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 901f043544..ed861dc4d6 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,10 @@ +* Qualify column name inserted by `group` in calculation + + Giving `group` an unqualified column name now works, even if the relation + has `JOIN` with another table which also has a column of the name. + + *Soutaro Matsumoto* + * Don't cache prepared statements containing an IN clause or a SQL literal, as these queries will change often and are unlikely to have a cache hit. -- cgit v1.2.3