diff options
author | Ryuta Kamizono <kamipo@gmail.com> | 2019-03-07 17:04:25 +0900 |
---|---|---|
committer | Ryuta Kamizono <kamipo@gmail.com> | 2019-03-07 17:05:52 +0900 |
commit | b02a6936f7156f9615d63abac0a96da07ca59e0e (patch) | |
tree | 6734c682bd85917633ae8ed521984411357fcecd /guides/source | |
parent | cdc62d5bcae7be47eefb346b78e310a3f1b63545 (diff) | |
download | rails-b02a6936f7156f9615d63abac0a96da07ca59e0e.tar.gz rails-b02a6936f7156f9615d63abac0a96da07ca59e0e.tar.bz2 rails-b02a6936f7156f9615d63abac0a96da07ca59e0e.zip |
Fix incorrect identifier quoting [ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r-- | guides/source/active_record_querying.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/active_record_querying.md b/guides/source/active_record_querying.md index c9db99ca1d..24dea0ec46 100644 --- a/guides/source/active_record_querying.md +++ b/guides/source/active_record_querying.md @@ -819,19 +819,19 @@ Post.select(:title, :body).reselect(:created_at) The SQL that would be executed: ```sql -SELECT `posts.created_at` FROM `posts` +SELECT `posts`.`created_at` FROM `posts` ``` In case the `reselect` clause is not used, ```ruby -Post.select(:title, :body) +Post.select(:title, :body).select(:created_at) ``` the SQL executed would be: ```sql -SELECT `posts.title`, `posts.body` FROM `posts` +SELECT `posts`.`title`, `posts`.`body`, `posts`.`created_at` FROM `posts` ``` ### `reorder` |