From 72f7094bac28141ddfce0318e67bd7959c0346cd Mon Sep 17 00:00:00 2001 From: Savorboard Date: Fri, 22 Nov 2019 17:51:39 +0800 Subject: [PATCH] Fix sql bug --- src/DotNetCore.CAP.SqlServer/IDataStorage.SqlServer.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/DotNetCore.CAP.SqlServer/IDataStorage.SqlServer.cs b/src/DotNetCore.CAP.SqlServer/IDataStorage.SqlServer.cs index cd4c29f..9e7a21e 100644 --- a/src/DotNetCore.CAP.SqlServer/IDataStorage.SqlServer.cs +++ b/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 {