Browse Source

Fix sql bug

master
Savorboard 5 years ago
parent
commit
72f7094bac
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/DotNetCore.CAP.SqlServer/IDataStorage.SqlServer.cs

+ 1
- 1
src/DotNetCore.CAP.SqlServer/IDataStorage.SqlServer.cs View File

@@ -70,7 +70,7 @@ namespace DotNetCore.CAP.SqlServer
CancellationToken cancellationToken = default) CancellationToken cancellationToken = default)
{ {
var sql = $"INSERT INTO {_pubName} ([Id],[Version],[Name],[Content],[Retries],[Added],[ExpiresAt],[StatusName])" + 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 var message = new MediumMessage
{ {


Loading…
Cancel
Save