aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/examples
diff options
context:
space:
mode:
authorankit8898 <ankit.gupta8898@gmail.com>2013-07-04 18:16:45 +0100
committerankit8898 <ankit.gupta8898@gmail.com>2013-07-04 18:16:45 +0100
commit46a0eacef8b277826618dfe9f5d0923a660e528c (patch)
treedc65e84d9a9acd01960cb71f1fda557ec69630a5 /activerecord/examples
parent6a71d09ad20bd0859c3229d0be21e40d21fc73ff (diff)
downloadrails-46a0eacef8b277826618dfe9f5d0923a660e528c.tar.gz
rails-46a0eacef8b277826618dfe9f5d0923a660e528c.tar.bz2
rails-46a0eacef8b277826618dfe9f5d0923a660e528c.zip
SQL Keywords to be in UPPERCASE
Diffstat (limited to 'activerecord/examples')
-rw-r--r--activerecord/examples/performance.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/examples/performance.rb b/activerecord/examples/performance.rb
index 91697b3c9c..35f13d2438 100644
--- a/activerecord/examples/performance.rb
+++ b/activerecord/examples/performance.rb
@@ -167,6 +167,6 @@ Benchmark.ips(TIME) do |x|
end
x.report "AR.execute(query)" do
- ActiveRecord::Base.connection.execute("Select * from exhibits where id = #{(rand * 1000 + 1).to_i}")
+ ActiveRecord::Base.connection.execute("SELECT * FROM exhibits WHERE id = #{(rand * 1000 + 1).to_i}")
end
end