QueryAsync throws "No columns were selected" when stored proc doesn't perform a select statement #591
Tested on Dapper 1.42 and 1.50.2
The following sql statement will simulate creating a temp stored proc and execute it with dapper
When using Query version, it works fine and no results return. When using QueryAsync version, it throws "No columns were selected" error.
I attached a code sample using microsoft localdb. The sample project is using Dapper 1.50.2 and structure similar to the one I submitted in #501
Nothing on this? This is a real problem.. We have a bunch of procs that throw errors if the sensitive data you queried is not there:
The database is old, and I'm not going to ask them to change 1000 procs to adjust to my code. multireader should expose some safe reader so we don't get these errors.