diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-07-04 10:22:36 -0700 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2013-07-04 10:22:36 -0700 |
commit | 4573825061e038504c98cdcaa60f1bb4307ee10c (patch) | |
tree | afd3b859cf562c7cab076f39276fefe99acaf230 /activerecord/examples | |
parent | 29561d842b8680daa767dfbc4cd700a4fc9c12f0 (diff) | |
parent | 46a0eacef8b277826618dfe9f5d0923a660e528c (diff) | |
download | rails-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/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 |