Skip to content

Commit

Permalink
Fix async rewriting issue
Browse files Browse the repository at this point in the history
Which made ExecuteScalarAsync not really async

Fixes #1303
  • Loading branch information
roji committed Oct 13, 2016
1 parent 4b6f0cd commit 550bfd6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Npgsql/GeneratedAsync.cs
Expand Up @@ -337,7 +337,7 @@ async Task<object> ExecuteScalarInternalAsync(CancellationToken cancellationToke
using (connector.StartUserAction(this))
{
Log.Trace("ExecuteNonScalar", connector.Id);
using (var reader = Execute(CommandBehavior.SequentialAccess | CommandBehavior.SingleRow))
using (var reader = await (ExecuteAsync(cancellationToken, CommandBehavior.SequentialAccess | CommandBehavior.SingleRow)))
return await (reader.ReadAsync(cancellationToken)) && reader.FieldCount != 0 ? reader.GetValue(0) : null;
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Npgsql/project.json
Expand Up @@ -63,7 +63,7 @@
}
},
"tools": {
"dotnet-rewrite-async": "0.8.7"
"dotnet-rewrite-async": "0.8.10"
},
"frameworks": {
"net45": {
Expand Down

0 comments on commit 550bfd6

Please sign in to comment.