U4-2205 - Log.GetLogItems(LogTypes, DateTime) fails with 'Conversion failed when converting the nvarchar value 'Custom' to data type int'

Created by Ian Dunkerly 08 May 2013, 23:32:41 Updated by Sebastiaan Janssen 10 May 2013, 11:41:56

The method

public List GetLogItems(LogTypes type, DateTime sinceDate)

fails with the error "Conversion failed when converting the nvarchar value 'Custom' to data type int" because the parameter array is created with

Log.SqlHelper.CreateParameter("@logHeader", type)

rather than

Log.SqlHelper.CreateParameter("@logHeader", type.ToString())

which can be seen in the obsolete GetLogReader methods.

Comments

Sebastiaan Janssen 10 May 2013, 11:41:45

Fixed in changeset 8a7ad5125487


Priority: Normal

Type: Bug

State: Fixed

Assignee:

Difficulty: Very Easy

Category:

Backwards Compatible: True

Fix Submitted: Inline code

Affected versions: 6.0.4

Due in version: 6.0.6, 4.11.9

Sprint:

Story Points:

Cycle: