Hello,

I found the problem.

In the oql-ojb.g grammar file, the charVocabulary is not encluding all of
unicode it should be:

charVocabulary = '\u0000' .. '\uFFFE';

However with antlr 2.7.1 this will cause a problem with class being to big.
However this problem is fixed with antlr 2.7.2.

Alan

-----Original Message-----
From: Olmanson, Alan [mailto:[EMAIL PROTECTED]
Sent: Wednesday, May 28, 2003 3:15 PM
To: '[EMAIL PROTECTED]'
Subject: unicode in oql queries


Hello,

Is unicode supposed to work in oql queries?

For example I have: Select objects from com.xyz.Customer where name like
"???"

And I get a antlr.MismatchedCharException thrown by antlr.CharScanner to
OQLLexer.nextToken which rethrows it as a TokenStreamRecognitionException.

It appears to not recognize ? as a character so it expects a " to end the
string.

Alan 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to