Skip to content

Commit fa43a35

Browse files
Fixup setting up the driver, to be squashed.
1 parent 8055a26 commit fa43a35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/NHibernate.Test/TestCase.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -295,7 +295,7 @@ protected virtual DebugSessionFactory BuildSessionFactory()
295295
var factory = new DebugSessionFactory(cfg.BuildSessionFactory());
296296
// Avoid ORA-12704 in tests, due to NHibernate defaulting String to NVarchar2 when creating tables while
297297
// ODP.Net defaults it to Varchar2 (which does support Unicode too, depending on server) for parameters.
298-
if (factory.ConnectionProvider?.Driver is OracleManagedDataClientDriver oracleManagedDriver)
298+
if (((ISessionFactoryImplementor)factory).ConnectionProvider.Driver is OracleManagedDataClientDriver oracleManagedDriver)
299299
oracleManagedDriver.UseNVarchar2ForStringParameter = true;
300300
return factory;
301301
}

0 commit comments

Comments
 (0)