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 08:32 Go to next message
No real name is currently offline No real name
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 15:34 Go to previous message
saurav sarkar is currently offline saurav sarkar
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 15:34]

Report message to a moderator

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


Current Time: Fri Jul 25 19:04:03 EDT 2014

Powered by FUDForum. Page generated in 0.01852 seconds