调试存储过程发现某字段NULL,拼成的SQL最后啥也没有了。。。
原因是存储过程没有执行到查询SQL语句
QueryAsync throws "No columns were selected" when stored proc doesn't perform a select statement #591
Closed
QueryAsync throws "No columns were selected" when stored proc doesn't perform a select statement#591
toannguyen83 opened this issue on Aug 27, 2016 · 18 comments
Comments
|
I ran into this problem too. I also noticed that it works correctly in Mono, but not .NET. |
|
I'm having this same problem. Is there any plan to get this fixed, it is a pretty serious issue. Having to query the database to get the object to update is cumbersome. |
|
I can confirm that the issue affects async version of query, but it works fine otherwise. |
|
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. |
- 多路io复用Select [补档-2023-07-16]
- 【Leetcode1949. 坚定的友谊】使用MySQL在无向图中寻找{"CompleteTripartite", {1, 1, 3}}这个pattern
- Python中出现"No module named 'requests'"的图文解决办法
- 在Windows上出现"localhost拒绝连接”的问题
- "nginx.conf" E514 : write error (file system full?)
- antd中columns中配置的操作,如何,调用函数组件中的方法
- 加了@SessionAttributes("uid")退出登陆后如何清除session
- cdn引入vue后报错无法识路径 Uncaught TypeError: Failed to resolve module specifier "vue". Relative references must start with either "/", "./", or "../".
- jni Exception in thread "main" java.lang.UnsatisfiedLinkError:
- [Vue warn]: Component provided template option but runtime compilation is not supported in this build of Vue. Configure your bundler to alias "vue" to "vue/dist/vue.esm-bundler.js".
本栏目推荐文章
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
DapperBugReplication20160827.zip