Skip to content

Commit 5a56da4

Browse files
committed
Remove commented code
1 parent 1f94251 commit 5a56da4

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

test/cases/adapter_test_sqlserver.rb

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -92,21 +92,6 @@ class AdapterTestSQLServer < ActiveRecord::TestCase
9292
assert arunit2_connection.table_exists?("#{arunit_database}.dbo.topics"), 'Topics table exists using Colleges connection'
9393
end
9494

95-
# it "test sql insert across databases" do
96-
# arunit_connection = Topic.lease_connection
97-
# arunit2_connection = College.lease_connection
98-
#
99-
# arunit_database = arunit_connection.pool.db_config.database
100-
# arunit2_database = arunit2_connection.pool.db_config.database
101-
#
102-
# sql = <<~SQL
103-
# INSERT INTO #{arunit2_database}.dbo.dogs SELECT * FROM #{arunit_database}.dbo.dogs
104-
# SQL
105-
#
106-
# arunit_connection.exec_insert sql
107-
# assert arunit_connection.send(:query_requires_identity_insert?, sql)
108-
#
109-
# end
11095
it "return true to insert sql query for inserts only" do
11196
assert connection.send(:insert_sql?, "INSERT...")
11297
assert connection.send(:insert_sql?, "EXEC sp_executesql N'INSERT INTO [fk_test_has_fks] ([fk_id]) VALUES (@0); SELECT CAST(SCOPE_IDENTITY() AS bigint) AS Ident', N'@0 int', @0 = 0")

0 commit comments

Comments
 (0)