Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » [EMF Query2] Issue with alias in an or textual query
[EMF Query2] Issue with alias in an or textual query [message #668021] Tue, 03 May 2011 12:32 Go to next message
No real name is currently offline No real nameFriend
Messages: 1
Registered: May 2011
Junior Member
Hi,

the query
from A as a
select a
where
	a.prop = "test"
or
	a.refB in (
		from B as b
		select b
		where
			b.prop = "test"
	)

results in a validation error, saying that
Quote:
The current query can only execute where entries in an or subtree if they share the same alias

The statement b.prop = "test" is marked as the source for the validation error.
I was wondering what the exact meaning of the message is and why there is such a limitation. For me the query looks fine.

cheers,
Christian

Re: [EMF Query2] Issue with alias in an or textual query [message #668114 is a reply to message #668021] Tue, 03 May 2011 19:34 Go to previous message
saurav sarkar is currently offline saurav sarkarFriend
Messages: 424
Registered: July 2009
Senior Member
Hi Christian,

Looks like a bug to me.Need to check in the Query2 XText model.
Can you please open a bugzilla request with the details ?

Will look at it as soon as possible.

Cheers,
Saurav


[Updated on: Tue, 03 May 2011 19:34]

Report message to a moderator

Previous Topic:MOF Profiling
Next Topic:createPropertyEditor for EReferenceImpl
Goto Forum:
  


Current Time: Sat Dec 20 22:25:27 GMT 2014

Powered by FUDForum. Page generated in 0.01514 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software