From 30feb8c816a7314b69530bf383d6cacce4a602c2 Mon Sep 17 00:00:00 2001
From: Swanand Pagnis <swanand.pagnis@gmail.com>
Date: Mon, 5 Mar 2012 18:54:34 +0530
Subject: Fixed a slightly misleading equivalent SQL code on the 3.2 query
 interface.

---
 railties/guides/source/active_record_querying.textile | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'railties/guides/source/active_record_querying.textile')

diff --git a/railties/guides/source/active_record_querying.textile b/railties/guides/source/active_record_querying.textile
index e46410ce59..d9d7d38db5 100644
--- a/railties/guides/source/active_record_querying.textile
+++ b/railties/guides/source/active_record_querying.textile
@@ -94,7 +94,7 @@ client = Client.find(10)
 The SQL equivalent of the above is:
 
 <sql>
-SELECT * FROM clients WHERE (clients.id = 10)
+SELECT * FROM clients WHERE (clients.id = 10) LIMIT 1
 </sql>
 
 <tt>Model.find(primary_key)</tt> will raise an +ActiveRecord::RecordNotFound+ exception if no matching record is found.
-- 
cgit v1.2.3

