Fixed
Details
Details
Assignee
Julian Maughan
Julian MaughanReporter
Mario Dal Lago
Mario Dal LagoLabels
Components
Fix versions
Affects versions
Priority
Who's Looking?
Open Who's Looking?
Created April 22, 2012 at 10:14 PM
Updated July 2, 2015 at 11:51 PM
Resolved May 23, 2012 at 7:56 PM
a class with a char property
public class User
{
public virtual int Id { get; set; }
public virtual string Name { get; set; }
public virtual char Type { get; set; }
}
and this query
var user = s.Query<User>().Where(x => x.Type == 'A').ToList();
generate incorrect sql with a cast to int
select user0_.UserId as UserId0_, user0_.Name as Name0_, user0_.Type as Type0_ from [User] user0_ where cast(user0_.Type as INT)=@p0
Name1 - Value:65