aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/base.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-12-30 18:27:09 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-12-30 18:27:09 +0900
commit7fae88f71d7ac0a0c0755ff5172fbde00c8a3248 (patch)
tree7ff1128423a2bd16df40bf6f7b2af49cbefe7e6c /actionpack/lib/action_controller/base.rb
parent11c06d3cbf17bb6133108df4207440a545bdc052 (diff)
downloadrails-7fae88f71d7ac0a0c0755ff5172fbde00c8a3248.tar.gz
rails-7fae88f71d7ac0a0c0755ff5172fbde00c8a3248.tar.bz2
rails-7fae88f71d7ac0a0c0755ff5172fbde00c8a3248.zip
Fix `cache_key` with a relation having distinct and order
We can't replace existing SELECT list as long as having DISTINCT, it will cause incorrect result. And also, PostgreSQL has a limitation that ORDER BY expressions must appear in select list for SELECT DISTINCT. Therefore, we should not replace existing SELECT list when using DISTINCT. Fixes #29779.
Diffstat (limited to 'actionpack/lib/action_controller/base.rb')
0 files changed, 0 insertions, 0 deletions