-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: QueryNode question
PostPosted: Tue Sep 19, 2006 12:38 am 
Beginner
Beginner

Joined: Tue Aug 22, 2006 3:06 am
Posts: 25
why AST from hqlSqlWalker.getAST() can convert to QueryNode and
from hqlParser.getAST() can't?


AST ast=hqlParser.getAST();
QueryNode queryNode=(QueryNode)ast; //report ClassCastException!

but

AST ast=hqlSqlWalker.getAST() ;
QueryNode queryNode=(QueryNode)ast; //right!


Top
 Profile  
 
 Post subject: solved!
PostPosted: Tue Sep 19, 2006 3:50 am 
Beginner
Beginner

Joined: Tue Aug 22, 2006 3:06 am
Posts: 25
use SqlASTFactory not the primary ASTFactory


Top
 Profile  
 
 Post subject: solved!
PostPosted: Tue Sep 19, 2006 3:51 am 
Beginner
Beginner

Joined: Tue Aug 22, 2006 3:06 am
Posts: 25
use SqlASTFactory not the primary ASTFactory


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.