浏览代码

fixed mysql message queue executor bug. #66

master
Savorboard 7 年前
父节点
当前提交
573249f14c
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. +2
    -0
      src/DotNetCore.CAP.MySql/MySqlStorageConnection.cs

+ 2
- 0
src/DotNetCore.CAP.MySql/MySqlStorageConnection.cs 查看文件

@@ -60,6 +60,7 @@ SELECT * FROM `{_prefix}.published` WHERE Id=LAST_INSERT_ID();";

using (var connection = new MySqlConnection(Options.ConnectionString))
{
connection.Execute("SELECT LAST_INSERT_ID(0)");
return await connection.QueryFirstOrDefaultAsync<CapPublishedMessage>(sql);
}
}
@@ -105,6 +106,7 @@ SELECT * FROM `{_prefix}.received` WHERE Id=LAST_INSERT_ID();";

using (var connection = new MySqlConnection(Options.ConnectionString))
{
connection.Execute("SELECT LAST_INSERT_ID(0)");
return await connection.QueryFirstOrDefaultAsync<CapReceivedMessage>(sql);
}
}


正在加载...
取消
保存