Browse files

Active Record Query Interface Guide: Added LIMIT so the query transla…

…tes correctly.
  • Loading branch information...
1 parent f5c54bc commit 05dd19e21734c81b44a56599131a632da3e9d52b @rizwanreza rizwanreza committed Apr 5, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 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:
-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))

0 comments on commit 05dd19e

Please sign in to comment.