瀏覽代碼

Fix sql bug

master
Savorboard 5 年之前
父節點
當前提交
72f7094bac
共有 1 個檔案被更改,包括 1 行新增1 行删除
  1. +1
    -1
      src/DotNetCore.CAP.SqlServer/IDataStorage.SqlServer.cs

+ 1
- 1
src/DotNetCore.CAP.SqlServer/IDataStorage.SqlServer.cs 查看文件

@@ -70,7 +70,7 @@ namespace DotNetCore.CAP.SqlServer
CancellationToken cancellationToken = default)
{
var sql = $"INSERT INTO {_pubName} ([Id],[Version],[Name],[Content],[Retries],[Added],[ExpiresAt],[StatusName])" +
$"VALUES(@Id,'{_options.Value}',@Name,@Content,@Retries,@Added,@ExpiresAt,@StatusName);";
$"VALUES(@Id,'{_options.Value.Version}',@Name,@Content,@Retries,@Added,@ExpiresAt,@StatusName);";

var message = new MediumMessage
{


Loading…
取消
儲存