You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I don't seem to be able to insert a null into a database column, below is my code/configs
in columns Venue and DepartmentID, when I set the value/DepartmentID to null, NLog keeps inserting empty string
Unfortunately ${db-null} isn't supported with ${when} for now in NLog 4.6.
This will be fixed in the upcoming release. See this PR from a few days ago (see #3373). The next planned release is 5.0 and this will take some week/months.
I could try to backport it and create a pre-release, could you test it with a pre-release? (I will sent a URL to the nugetpackage then).
PS: dbType="${db-null} isn't correct. It should be something like dbType="string" (dBType value) or dbType="SqlDbType.NChar" (SQL Server with ADO.NET) see https://github.com/NLog/NLog/wiki/Database-target
Hi!
I don't seem to be able to insert a null into a database column, below is my code/configs
in columns Venue and DepartmentID, when I set the value/DepartmentID to null, NLog keeps inserting empty string
Am I missing something?
NLog version: (e.g. 4.6.3)
Platform: .Net 4.5
Current NLog config (xml or C#, if relevant)
The expected result is to insert null into columns Venue and DepartmentID
The text was updated successfully, but these errors were encountered: