-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Description
Take the following query..
var name = "test";
var sql = new SqlLam<User>();
sql.Where(x => x.UserName == name).Or(x => name == null);
or
var sql = new SqlLam<User>(x => x.UserName == name || name == null);
This causes a System.StackOverflowException, what it should return is
"SELECT * FROM User WHERE Username = @Param1 OR @Param1 IS NULL"
Original issue reported on code.google.com by lee...@leehull.com on 19 Feb 2014 at 9:55