We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8055a26 commit fa43a35Copy full SHA for fa43a35
src/NHibernate.Test/TestCase.cs
@@ -295,7 +295,7 @@ protected virtual DebugSessionFactory BuildSessionFactory()
295
var factory = new DebugSessionFactory(cfg.BuildSessionFactory());
296
// Avoid ORA-12704 in tests, due to NHibernate defaulting String to NVarchar2 when creating tables while
297
// ODP.Net defaults it to Varchar2 (which does support Unicode too, depending on server) for parameters.
298
- if (factory.ConnectionProvider?.Driver is OracleManagedDataClientDriver oracleManagedDriver)
+ if (((ISessionFactoryImplementor)factory).ConnectionProvider.Driver is OracleManagedDataClientDriver oracleManagedDriver)
299
oracleManagedDriver.UseNVarchar2ForStringParameter = true;
300
return factory;
301
}
0 commit comments