调试存储过程发现某字段NULL,拼成的SQL最后啥也没有了。。。
原因是存储过程没有执行到查询SQL语句
QueryAsync throws "No columns were selected" when stored proc doesn't perform a select statement #591
南来地,北往的,上班的,下岗的,走过路过不要错过!
======================个性签名=====================
之前认为Apple 的iOS 设计的要比 Android 稳定,我错了吗?
下载的许多客户端程序/游戏程序,经常会Crash,是程序写的不好(内存泄漏?刚启动也会吗?)还是iOS本身的不稳定!!!
如果在Android手机中可以简单联接到ddms,就可以查看系统log,很容易看到程序为什么出错,在iPhone中如何得知呢?试试Organizer吧,分析一下Device logs,也许有用.
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