SQL Keywords to be in UPPERCASE

This commit is contained in:
ankit8898 2013-07-04 18:16:45 +01:00
parent 6a71d09ad2
commit 46a0eacef8

@ -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