Skip to content

Commit 97e2b71

Browse files
author
Anna
committed
add module name
1 parent 059d633 commit 97e2b71

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

test/cases/adapter_test_sqlserver.rb

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -801,10 +801,16 @@ class AdapterTestSqlserver < ActiveRecord::TestCase
801801
end
802802

803803

804-
class AdapterTest < ActiveRecord::TestCase
804+
module ActiveRecord
805+
class AdapterTest < ActiveRecord::TestCase
806+
805807
COERCED_TESTS = [:test_update_prepared_statement]
806808
# Like PostgreSQL, SQL Server does not support null bytes in strings.
809+
# DECLARE @mybin1 binary(5), @mybin2 binary(5)
810+
# SET @mybin1 = 0x00
811+
# SELECT 'a'+CONVERT(varchar(5), @mybin1) + 'aaaaa'
807812
# This is not run for PostgreSQL at the rails level and the same should happen for SQL Server
808813
# Until that patch is made to rails we are preventing this test from running in this gem.
809-
include SqlserverCoercedTest
814+
include SqlserverCoercedTest
815+
end
810816
end

0 commit comments

Comments
 (0)