Hi.
I have the following HQL:
Code:
"SELECT COUNT(*) FROM NHibernateProvidersMapping.NHRole r WHERE r.AppId = 1 AND r.Name = \"Nota Fiscal - Cancelar\""
When I call IQuery.UniqueResult with the HQL above, the SQL generated is:
Code:
select COUNT(*) as x0_0_ from nhrole nhrole0_ where (nhrole0_.appid=1)AND(nhrole0_.name="Nota Fiscal-Cancelar")
Take a look at the param "name". The HQL string has the value "Nota Fiscal - Cancelar" (with a space before and after the -). But the SQL generated doesn't have these spaces.
Anybody knows what is wrong? Is it normal? Can I disable it?
Thanks!