Permalink
Browse files

Merge pull request #11297 from ankit8898/master

SQL keywords in UPPERCASE
  • Loading branch information...
2 parents 29561d8 + 46a0eac commit 4573825061e038504c98cdcaa60f1bb4307ee10c @rafaelfranca rafaelfranca committed Jul 4, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/examples/performance.rb
View
2 activerecord/examples/performance.rb
@@ -167,6 +167,6 @@ def self.email
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

0 comments on commit 4573825

Please sign in to comment.