Are you sure you want to go this route? Fixing the queries in the code is probably easier and fixes the actual problem.
/G 2015-10-08 13:35 GMT+02:00 Anil Khanna <[email protected]>: > Hi, > > I am using AntlrWorks 1.5 to load the .g files > (nhibernate-core-master\src\NHibernate\Hql\Ast\ANTLR) - Hql.g / > HqlSqlWalker.g / SqlGenerator.g ... however there are Console errors on > loading of the file. I have made no changes to the definition yet. > > I am able to generate the lexer /parser, but when i try and use these > files instead of the original ones then there are compile time errors. > > Is there a separate location from where i can get the grammar files. What > version of AntlrWorks is compatible. > > br > > Anil > > On Wednesday, October 7, 2015 at 11:51:44 AM UTC+5:30, Gunnar Liljas wrote: >> >> You are certainly free to compile your own version, of course. >> >> 2015-10-07 6:11 GMT+02:00 Anil Khanna <[email protected]>: >> >>> Would an alternative be where we change the grammar definition to >>> support (+) constructs... >>> >>> br >>> >>> Anil >>> >>> >>> On Tuesday, October 6, 2015 at 3:26:52 PM UTC+5:30, Anil Khanna wrote: >>>> >>>> Hi All, >>>> >>>> We are looking at the opportunity to migrate from NH 1.2 to NH 4.0.4. >>>> Yes there was a long gap, but we know business ways are different from the >>>> technical ones. >>>> >>>> One of the breaking changes that we see is that Outer Joins structure >>>> of (+) is not supported any more. >>>> >>>> Earlier the following construct worked very well. - SELECT A.ID, >>>> B.NAME FROM T1 A, T2 B WHERE A.ID (+)= B.ID AND A.CODE(+)=:code >>>> >>>> However now the parser throws an unrecognized pattern error. (ANTLR has >>>> been introduced which was not present in NH 1.2) >>>> >>>> I have read some documentation and all of them say that we have to use >>>> the key words "outer join" (left / right) to get this working - in a >>>> particular way. >>>> >>>> We have more than 3000 such <(+)> constructs and was wondering if there >>>> is a way to get this working without refactoring the existing code. >>>> >>>> Thanks for your help in advance. >>>> >>>> Regards, >>>> >>>> Anil >>>> >>>> >>>> -- >>> You received this message because you are subscribed to the Google >>> Groups "nhusers" group. >>> To unsubscribe from this group and stop receiving emails from it, send >>> an email to [email protected]. >>> To post to this group, send email to [email protected]. >>> Visit this group at http://groups.google.com/group/nhusers. >>> For more options, visit https://groups.google.com/d/optout. >>> >> >> -- > You received this message because you are subscribed to the Google Groups > "nhusers" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/nhusers. > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "nhusers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/nhusers. For more options, visit https://groups.google.com/d/optout.
