The HQL function for modulus is : modfrom Animal a where mod(20, 3) = 2 from Animal a where mod(cast(a.BodyWeight as int), 4)=0
2009/6/2 Carsten Hess <[email protected]> > > I get a "NoViableAltException" from the new parser (HqlLexer line > 3438) from the HQL: > > SELECT c.id from ClaimFolder c WHERE c.ClaimFolderStatus = :status AND > (c.ClaimFolderID % :noOfCalcs = :calcNo) > > I can see from via the debugger that in the string the lexer works on, > the modulus character has been removed > > Bug or feature ? > > Regards > Carsten > > > -- Fabio Maulo --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "nhusers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nhusers?hl=en -~----------~----~----~----~------~----~------~--~---
