Skip to content

Commit bd5098f

Browse files
David EllingsworthDavid Ellingsworth
David Ellingsworth
authored and
David Ellingsworth
committedJun 6, 2024
GH-3530: The SqlServer 2008 driver does not support the DbDataReader.Get* methods, wrap it in a DirectCastDbReader.
1 parent 6d58b00 commit bd5098f

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed
 

‎src/NHibernate/Driver/Sql2008ClientDriver.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,12 @@ protected override void InitializeParameter(DbParameter dbParam, string name, Sq
3434

3535
/// <inheritdoc />
3636
public override DateTime MinDate => DateTime.MinValue;
37+
38+
public override DbDataReader ExecuteReader(DbCommand command)
39+
{
40+
var reader = command.ExecuteReader();
41+
42+
return new DirectCastDbDataReader(reader);
43+
}
3744
}
3845
}

0 commit comments

Comments
 (0)