我有一个- IDbConnection - sql =@“更新表名集json = :json,lastupdate = SYSDATE其中id = :id”
var param = new DynamicParameters();
param.Add(":json", json, DbType.AnsiString);
param.Add(":id", currentTemplate.Id);
if (connection == null || connection.State != ConnectionState.Open) continue;
connection.Execute(sql, param); // hangs here.
connection.Query(sql, param); // tried this and this also hangs.编码在connection.Execute停止。没有错误什么的。只是挂起。
:json是由JsonConvert返回的序列化对象。
:id是字符串
我还尝试删除参数,并将值包含在SQL本身中。
发布于 2015-08-03 04:02:35
在我的例子中,我在另一个会话中有一个未提交的事务,如下所述:Oracle Update Hangs
https://stackoverflow.com/questions/27029951
复制相似问题