Hello,

I'm developing for Orchard CMS and I came across this bug.

https://nhibernate.jira.com/browse/NH-3035

Which I see has been fixed in Hibernate.

https://hibernate.atlassian.net/browse/HHH-892

https://github.com/davidmc24/hibernate-core/commit/13699d792b9f69fa13a1540617db71109aa9688e

At first I felt confident that I would be able to work these changes in.
I feel i successfully ported the unit tests and most of the object changes.
I'm hoping I can get some help with the n-hibernate equivalents in 
HqlSqlGenerator.g and SqlGenerator.g

https://github.com/StanleyGoldman/nhibernate-core/compare/NH-3035


For instance this chunk

orderExprs
>     : expr ( ASCENDING | DESCENDING )? (orderExprs)?
>     : orderExpr ( ASCENDING | DESCENDING )? (orderExprs)?
>     ;
>
> orderExpr
>     : { isOrderExpressionResultVariableRef( _t ) }? resultVariableRef
>     | expr
>     ;
>
> resultVariableRef!
>     : i:identifier {
>         // Create a RESULT_VARIABLE_REF node instead of an IDENT node.
>         #resultVariableRef = #([RESULT_VARIABLE_REF, i.getText()]);
>         handleResultVariableRef(#resultVariableRef);
>     }
>     ;
>

I'm not sure how to create a new instance of ResultVariableRefNode 
equivalent to the one above.

orderExprs
>     : orderExpr ( ASCENDING | DESCENDING )? (orderExprs)?
>     ;
>
> orderExpr
>     : { IsOrderExpressionResultVariableRef( _t ) }? resultVariableRef
>     | expr
>     ;
>
> resultVariableRef!
>     : i=identifier {
>         // Create a RESULT_VARIABLE_REF node instead of an IDENT node.
>         var resultVariableRef = new ResultVariableRefNode();
>         HandleResultVariableRef(resultVariableRef);
>     }
>     ;
>
 
Thanks in advance for any help.

-Stanley

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"nhibernate-development" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to