Skip to content

Bug in SqlCommand.ExecuteNonQueryAsync() #536

Description

@christian-ruud

When calling await command.ExecuteReturnValueAsync() inside a using block I get an exception saying a task was cancelled.

If I call await Task.Delay(100) before the end of the using scope, the call succeeds.

Similarly, if the call is to a stored procedure with a return value, I get a NullReferenceException if I attempt to read the return value without delaying first.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions