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 b77048b commit a09b987Copy full SHA for a09b987
test/cases/temp_test_sqlserver.rb
@@ -17,21 +17,21 @@ class TempTestSQLServer < ActiveRecord::TestCase
17
arunit2_database = arunit2_connection.pool.db_config.database
18
19
sql = <<~SQL
20
- INSERT INTO #{arunit2_database}.dbo.dogs(id) SELECT id FROM #{arunit_database}.dbo.dogs
+ INSERT INTO #{arunit2_database}.dbo.dogs(id) SELECT id FROM #{arunit_database}.dbo.dogs (NOLOCK)
21
SQL
22
23
OtherDog.destroy_all
24
25
assert Dog.count, 1
26
assert OtherDog.count, 0
27
28
- Dog.transaction do
29
- OtherDog.transaction do
+ # Dog.transaction do
+ # OtherDog.transaction do
30
assert_nothing_raised do
31
arunit_connection.execute(sql)
32
end
33
- end
34
+ # end
35
36
37
assert OtherDog.count, 1
0 commit comments