diff options
| author | Ryuta Kamizono <kamipo@gmail.com> | 2017-12-30 18:27:09 +0900 |
|---|---|---|
| committer | Ryuta Kamizono <kamipo@gmail.com> | 2017-12-30 18:27:09 +0900 |
| commit | 7fae88f71d7ac0a0c0755ff5172fbde00c8a3248 (patch) | |
| tree | 7ff1128423a2bd16df40bf6f7b2af49cbefe7e6c /guides/source/layouts_and_rendering.md | |
| parent | 11c06d3cbf17bb6133108df4207440a545bdc052 (diff) | |
| download | rails-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 'guides/source/layouts_and_rendering.md')
0 files changed, 0 insertions, 0 deletions
