Skip to content

Commit 55645b5

Browse files
authored
Merge pull request #356 from serilog/dev
Release 5.6.1
2 parents 70c3787 + a4a5fd1 commit 55645b5

File tree

6 files changed

+10
-6
lines changed

6 files changed

+10
-6
lines changed

CHANGES.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# 5.6.1
2+
* Added support for reserved columns (thanks to @susanneschuster).
3+
* Fixes in README.
4+
15
# 5.6.0
26
* Fixed issue #191: Added option `EagerlyEmitFirstEvent` by implementing new PeriodicBatchingSink API.
37
* Replaced `SinkOptions` with `MSSqlServerSinkOptions` and cleaned up namespaced (thanks to @jonorossi for the contribution).

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ This column stores log event property values as JSON. Typically you will use eit
486486

487487
The `ExcludeAddtionalProperties` and `ExcludeStandardColumns` properties are described in the [Custom Property Columns](#custom-property-columns) topic.
488488

489-
The content of this column is rendered as JSON by default or with a custom ITextFormatter passed by the caller as parameter `logEventFormatter`. Details can be found in [Sink Configuration Options](#sink-configuration-options).
489+
The content of this column is rendered as JSON by default or with a custom ITextFormatter passed by the caller as parameter `logEventFormatter`. Details can be found in [Sink Configuration](#sink-configuration).
490490

491491
## Custom Property Columns
492492

@@ -742,7 +742,7 @@ This capability requires SQL 2012 or newer. Given the following JSON properties:
742742
{
743743
"Properties": {
744744
"Action": "GetUsers",
745-
"Controller": "UserControler"
745+
"Controller": "UserController"
746746
}
747747
}
748748
```

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ artifacts:
1313
deploy:
1414
- provider: NuGet
1515
api_key:
16-
secure: K3/810hkTO6rd2AEHVkUQAadjGmDREus9k96QHu6hxrA1/wRTuAJemHMKtVVgIvf
16+
secure: zrzY5fJna3SCz64TYww+rcE4X1u9bDhDFBOztM0XJkqbPS4FBkwv5mCZO5L1ebBx
1717
on:
1818
branch: /^(master|dev)$/
1919
- provider: GitHub

src/Serilog.Sinks.MSSqlServer/Serilog.Sinks.MSSqlServer.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
<PropertyGroup>
44
<Description>A Serilog sink that writes events to Microsoft SQL Server</Description>
5-
<VersionPrefix>5.6.0</VersionPrefix>
5+
<VersionPrefix>5.6.1</VersionPrefix>
66
<Authors>Michiel van Oudheusden;Christian Kadluba;Serilog Contributors</Authors>
77
<TargetFrameworks>netstandard2.0;net452;net461;net472;netcoreapp2.0;netcoreapp2.1</TargetFrameworks>
88
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>

src/Serilog.Sinks.MSSqlServer/Sinks/MSSqlServer/Platform/SqlLogEventWriter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ public void WriteEvent(LogEvent logEvent)
4949
parameterList.Append(',');
5050
}
5151

52-
fieldList.Append(field.Key);
52+
fieldList.Append($"[{field.Key}]");
5353
parameterList.Append("@P");
5454
parameterList.Append(index);
5555

test/Serilog.Sinks.MSSqlServer.Tests/Sinks/MSSqlServer/Platform/SqlLogEventWriterTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ public void WriteEventCallsSqlCommandWrapperAddParameterForEachField()
139139
public void WriteEventSetsSqlCommandWrapperCommandTextToSqlInsertWithCorrectFieldsAndValues()
140140
{
141141
// Arrange
142-
var expectedSqlCommandText = $"INSERT INTO [{_schemaName}].[{_tableName}] (FieldName1,FieldName2,FieldNameThree) VALUES (@P0,@P1,@P2)";
142+
var expectedSqlCommandText = $"INSERT INTO [{_schemaName}].[{_tableName}] ([FieldName1],[FieldName2],[FieldNameThree]) VALUES (@P0,@P1,@P2)";
143143
var logEvent = TestLogEventHelper.CreateLogEvent();
144144
var fieldsAndValues = new List<KeyValuePair<string, object>>
145145
{

0 commit comments

Comments
 (0)