diff options
Diffstat (limited to 'activerecord/test/binary_test.rb')
-rw-r--r-- | activerecord/test/binary_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/activerecord/test/binary_test.rb b/activerecord/test/binary_test.rb index d635621cef..ba43524264 100644 --- a/activerecord/test/binary_test.rb +++ b/activerecord/test/binary_test.rb @@ -8,6 +8,13 @@ class BinaryTest < Test::Unit::TestCase def test_load_save # Without using prepared statements, it makes no sense to test + # BLOB data with SQL Server, because the length of a statement is + # limited to 8KB. + if ActiveRecord::ConnectionAdapters.const_defined? :SQLServerAdapter + return true if ActiveRecord::Base.connection.instance_of?(ActiveRecord::ConnectionAdapters::SQLServerAdapter) + end + + # Without using prepared statements, it makes no sense to test # BLOB data with DB2, because the length of a statement is # limited to 32KB. if ActiveRecord::ConnectionAdapters.const_defined? :DB2Adapter |