We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ea2e630 commit 3a9d21cCopy full SHA for 3a9d21c
test/cases/showplan_test_sqlserver.rb
@@ -14,9 +14,8 @@ class ShowplanTestSqlserver < ActiveRecord::TestCase
14
end
15
16
should 'from prepared statement' do
17
- car = Car.first
18
plan = capture_logger do
19
- with_threshold(0) { Car.find(car.id) }
+ with_threshold(0) { Car.find(1) }
20
21
assert plan.include?('EXPLAIN for: SELECT TOP (1) [cars].* FROM [cars] WHERE [cars].[id] = @0 [["id", 1]]')
22
assert plan.include?("Clustered Index Seek"), 'make sure we do not showplan the sp_executesql'
0 commit comments