diff options
author | ankit8898 <ankit.gupta8898@gmail.com> | 2013-07-04 18:16:45 +0100 |
---|---|---|
committer | ankit8898 <ankit.gupta8898@gmail.com> | 2013-07-04 18:16:45 +0100 |
commit | 46a0eacef8b277826618dfe9f5d0923a660e528c (patch) | |
tree | dc65e84d9a9acd01960cb71f1fda557ec69630a5 /activerecord/examples | |
parent | 6a71d09ad20bd0859c3229d0be21e40d21fc73ff (diff) | |
download | rails-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.rb | 2 |
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 |