From cf15e027b9699c29e01e7c91296a84f378c1c2f0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Thu, 19 Dec 2013 19:53:26 -0200 Subject: Improve CHANGELOG entry [ci skip] --- activerecord/CHANGELOG.md | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/activerecord/CHANGELOG.md b/activerecord/CHANGELOG.md index 149a3e6fc4..614059a94f 100644 --- a/activerecord/CHANGELOG.md +++ b/activerecord/CHANGELOG.md @@ -1,18 +1,16 @@ -* Improve the default select when from is used. +* Improve the default select when `from` is used. Previously, if you did something like Topic.from(:temp_topics), it would generate SQL like: - SELECT topics.* FROM temp_topics; + SELECT topics.* FROM temp_topics; - Which is useless, cause obviously there's not a topics table to select - from. So one would always have to include a select to override the - default behavior. Now the default if you use from is just *: + Which is will cause an error since there's not a topics table to select + from. - SELECT * FROM temp_topics; + Now the default if you use from is just `*`: - Which may not be what you want in all cases, but is at least usable - in some cases. + SELECT * FROM temp_topics; *Cody Cutrer* -- cgit v1.2.3