-->
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.  [ 1 post ] 
Author Message
 Post subject: How to deal with named/positional parameters inside quot es?
PostPosted: Thu May 14, 2009 4:33 pm 
Newbie

Joined: Thu May 14, 2009 4:18 pm
Posts: 1
Hi,

I have an DMX query which has to have named or positional parameters:

select * from openquery(TAO,
'WITH MEMBER [ID] AS :id
MEMBER [NAME] AS :name
MEMBER [CHILDREN] AS :children
select {[ID]} ON COLUMNS,
order( {[CHILDREN}, [NAME], asc) on rows
from [TAO]')

The problem is that the org.hibernate.engine.query.ParameterParser, which is responsible for parsing a
query string and recognizing tokens, skips everything within single quotes. Hence, I can't substitute any defined parameters. Any advice/workaround is appreciated. Thanks!


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

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.