And the sense to run a query to DB with a clause "where 1 = 0" is ? a bug in NH... obviously.
On Sat, Oct 30, 2010 at 10:47 PM, Hoang Tang <[email protected]> wrote: > Using Criteria seem to give the correct result... so this is definitely a > bug > > a criteria that doing a contains with an empty collection should be > translated to false... ie > where 1 = 0; > > > On Sat, Oct 30, 2010 at 8:39 PM, Hoang Tang <[email protected]> wrote: > >> Recently I filled this Jira http://216.121.112.228/browse/NH-2400 which a >> Linq query failed with using Contains with an empty collection >> >> Shortly after after some more testing I found out that I got the same >> error using HQL which lead me to believe this might be by design? >> >> If so what happen if there are multiple ORing criteria and this is one of >> them. >> > > -- Fabio Maulo
