From b1aeae0494c904db224b728330084ea173f38cf5 Mon Sep 17 00:00:00 2001 From: Federico Martinez Date: Thu, 7 Jun 2018 01:05:30 -0300 Subject: Fix Collection cache key with limit and custom select (PG:AmbigousColumn: Error) Change query to use alias name for timestamp_column to avoid ambiguity problems when using timestamp from subquery. --- activerecord/CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'activerecord/CHANGELOG.md') diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 00f4ee1aaa..4e0336f46b 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,3 +1,9 @@ +* Fix Collection cache key with limit and custom select + + Fixes #33056. + + *Federico Martinez* + * Add basic API for connection switching to support multiple databases. 1) Adds a `connects_to` method for models to connect to multiple databases. Example: -- cgit v1.2.3