Skip to content

Commit

Permalink
Better HasRows (still not 100%).
Browse files Browse the repository at this point in the history
  • Loading branch information
cincuranet committed Oct 10, 2017
1 parent bdbec63 commit 754345a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -281,9 +281,9 @@ internal bool HasImplicitTransaction
get { return _implicitTransaction; }
}

internal bool IsSelectCommand
internal bool HasFields
{
get { return _statement != null && (_statement.StatementType == DbStatementType.Select || _statement.StatementType == DbStatementType.SelectForUpdate); }
get { return _statement != null && _statement.Fields.Count > 0; }
}

internal bool IsDDLCommand
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public override int Depth

public override bool HasRows
{
get { return _command.IsSelectCommand; }
get { return _command.HasFields; }
}

public override bool IsClosed
Expand Down

0 comments on commit 754345a

Please sign in to comment.