Skip to content

Commit

Permalink
Return DuckDB specific classes
Browse files Browse the repository at this point in the history
  • Loading branch information
Giorgi committed Aug 19, 2022
1 parent 6a8d370 commit b7f3e52
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions DuckDB.NET.Data/DuckDBCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,16 @@ public override object ExecuteScalar()
return reader.Read() ? reader.GetValue(0) : null;
}

public new DuckDBDataReader ExecuteReader()
{
return (DuckDBDataReader) base.ExecuteReader();
}

public new DuckDBDataReader ExecuteReader(CommandBehavior behavior)
{
return (DuckDBDataReader) base.ExecuteReader(behavior);
}

protected override DbDataReader ExecuteDbDataReader(CommandBehavior behavior)
{
EnsureConnectionOpen();
Expand Down

0 comments on commit b7f3e52

Please sign in to comment.