diff options
author | Rizwan Reza <rizwanreza@gmail.com> | 2010-04-05 19:49:48 +0430 |
---|---|---|
committer | Rizwan Reza <rizwanreza@gmail.com> | 2010-04-05 19:49:48 +0430 |
commit | 05dd19e21734c81b44a56599131a632da3e9d52b (patch) | |
tree | 796287e4a06a33e655a6e3812999e37390c77167 /railties/guides | |
parent | f5c54bce20933b6d48dd9f41b49839302c1335f7 (diff) | |
download | rails-05dd19e21734c81b44a56599131a632da3e9d52b.tar.gz rails-05dd19e21734c81b44a56599131a632da3e9d52b.tar.bz2 rails-05dd19e21734c81b44a56599131a632da3e9d52b.zip |
Active Record Query Interface Guide: Added LIMIT so the query translates correctly.
Diffstat (limited to 'railties/guides')
-rw-r--r-- | railties/guides/source/active_record_querying.textile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/railties/guides/source/active_record_querying.textile b/railties/guides/source/active_record_querying.textile index 3a62ee567d..a993dad900 100644 --- a/railties/guides/source/active_record_querying.textile +++ b/railties/guides/source/active_record_querying.textile @@ -742,7 +742,7 @@ end The above code will execute just <strong>2</strong> queries, as opposed to <strong>11</strong> queries in the previous case: <sql> -SELECT * FROM clients +SELECT * FROM clients LIMIT 10 SELECT addresses.* FROM addresses WHERE (addresses.client_id IN (1,2,3,4,5,6,7,8,9,10)) </sql> |