Done, test case and patch created: http://216.121.112.228/browse/NH-2169

   Diego


On Fri, Apr 9, 2010 at 03:35, Richard Brown <[email protected]> wrote:

>  It does look a little suspicious.  Shouldn't be hard to create a failing
> test?
>
>  *From:* Diego Mijelshon <[email protected]>
> *Sent:* Thursday, April 08, 2010 3:17 PM
> *To:* nhibernate-development <[email protected]>
> *Subject:* [nhibernate-development] ToLower and ToUpper inverted in Linq?
>
> These lines from NHibernate.Linq.Functions.StringGenerator caught my
> attention today while researching
> http://stackoverflow.com/questions/2598202/does-nhibernate-linq-support-tolower-in-where-clauses:
>
>
>                  if (((method.Name == "ToUpper") || (method.Name ==
> "ToUpperInvariant")))
>                 {
>                     methodName = "lower";
>                 }
>                 else
>                 {
>                     methodName = "upper";
>                 }
>
> Isn't it supposed to be the other way around?
>
>    Diego
>
>

Reply via email to