Hi!
A have a problem with some HQL queries that puzzles me somewhat.
For example, when I execute this (using ISession.CreateQuery()):
Code:
FROM Grupp obj WHERE ( (obj.Namn = 'Foo, Bar, Grupp 1 test') )
I get this error:
Quote:
Incorrect query syntax [FROM ActiveSolution.Lernia.Butler.EducationEntities.Grupp obj WHERE ( (obj.Namn = 'Foo, Bar, ActiveSolution.Lernia.Butler.EducationEntities.Grupp 1 test') ) ]
Apparently NHibernate confuses the string constant with the entity class name. This does not happen if I have no commas in the string, or if I change the case of the string.
If anyone have a suggestion of how to avoid this problem, I'm all ears!
I use NHibernate 1.0.1 and SQL Server 2000.
Thanks in advance,
Emil