File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
src/NHibernate.Test/NHSpecificTest/NH3121 Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 3
3
using System . Linq ;
4
4
using System . Reflection ;
5
5
using NHibernate . Dialect ;
6
+ using NHibernate . Driver ;
6
7
using NUnit . Framework ;
7
8
8
9
namespace NHibernate . Test . NHSpecificTest . NH3121
@@ -23,6 +24,12 @@ protected override bool AppliesTo(Dialect.Dialect dialect)
23
24
[ Test ]
24
25
public void ShouldThrowWhenByteArrayTooLong ( )
25
26
{
27
+ // For SQL Server only the SqlClientDriver sets parameter lengths
28
+ // even when there is no length specified in the mapping. The ODBC
29
+ // driver won't cause the truncation issue and hence not the exception.
30
+ if ( ! ( sessions . ConnectionProvider . Driver is SqlClientDriver ) )
31
+ Assert . Ignore ( "Test limited to drivers that sets parameter length even with no length specified in the mapping." ) ;
32
+
26
33
const int reportSize = 17158 ;
27
34
var random = new Random ( ) ;
28
35
You can’t perform that action at this time.
0 commit comments