Skip to content

Commit d300e0b

Browse files
David EllingsworthDavid Ellingsworth
David Ellingsworth
authored and
David Ellingsworth
committed
GH-3530: The Oracle driver does not implement DbDataReader.Get* methods. Encapsulate their DbDataReader with the DirectCastDbDataReader.
1 parent 3597409 commit d300e0b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/NHibernate/Driver/OracleDataClientDriverBase.cs

+5
Original file line numberDiff line numberDiff line change
@@ -242,6 +242,11 @@ public override DbCommand UnwrapDbCommand(DbCommand command)
242242
return command is OracleDbCommandWrapper wrapper ? wrapper.Command : command;
243243
}
244244

245+
public override DbDataReader ExecuteReader(DbCommand cmd)
246+
{
247+
return new DirectCastDbDataReader(cmd.ExecuteReader());
248+
}
249+
245250
System.Type IEmbeddedBatcherFactoryProvider.BatcherFactoryClass => typeof(OracleDataClientBatchingBatcherFactory);
246251
}
247252
}

0 commit comments

Comments
 (0)