aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2013-07-04 10:22:36 -0700
committerRafael Mendonça França <rafaelmfranca@gmail.com>2013-07-04 10:22:36 -0700
commit4573825061e038504c98cdcaa60f1bb4307ee10c (patch)
treeafd3b859cf562c7cab076f39276fefe99acaf230 /activerecord
parent29561d842b8680daa767dfbc4cd700a4fc9c12f0 (diff)
parent46a0eacef8b277826618dfe9f5d0923a660e528c (diff)
downloadrails-4573825061e038504c98cdcaa60f1bb4307ee10c.tar.gz
rails-4573825061e038504c98cdcaa60f1bb4307ee10c.tar.bz2
rails-4573825061e038504c98cdcaa60f1bb4307ee10c.zip
Merge pull request #11297 from ankit8898/master
SQL keywords in UPPERCASE
Diffstat (limited to 'activerecord')
-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