aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/coders
diff options
context:
space:
mode:
authorEugene Kenny <elkenny@gmail.com>2017-02-26 12:44:05 +0000
committerEugene Kenny <elkenny@gmail.com>2017-02-26 12:44:05 +0000
commit18125683ac2a23971b64a79d256ba6e252304c6f (patch)
treed2aa6e8c25334002fdfdbfccc0730fa59c105dac /activerecord/test/cases/coders
parent38d05cee5342094bba0ef17d25f5cf5d0eccfbb5 (diff)
downloadrails-18125683ac2a23971b64a79d256ba6e252304c6f.tar.gz
rails-18125683ac2a23971b64a79d256ba6e252304c6f.tar.bz2
rails-18125683ac2a23971b64a79d256ba6e252304c6f.zip
Include selects in group query with having clause
When a grouped calculation contains a having clause that references a selected value, we need to include that selected value in the query. Postgres doesn't support referencing a selected value in a having clause, but other databases do; we can skip the test on the pg adapter but run it for the others. This was fixed before in 9a298a162c16e019fe6971e563e7f4916e86ced6, but the test coverage was lost in 5a05207d99b7e2678f9b42db2d9ffc21ec2c8c3b. The fix regressed in 6311975fb3c02f50730fd1e11b8dba8dd9c05306 and was removed in 97d46c17ea9113b0ce970167f5208c8d9170915c.
Diffstat (limited to 'activerecord/test/cases/coders')
0 files changed, 0 insertions, 0 deletions