Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » Regression 2.4.1 -> 2.4.2
Regression 2.4.1 -> 2.4.2 [message #1096287] Wed, 28 August 2013 07:33 Go to next message
Alex Panchenko is currently offline Alex Panchenko
Messages: 342
Registered: July 2009
Senior Member
We've experienced a regression on the following query:

List<Object[]> data = entityManager.createQuery("select f.category, f.categoryName, sum(f.value1), sum(f.value2) from Foo f group by f.category, f.categoryName").getResultList();


f.categoryName is missed from the parsed query, so results contain 3 values instead of 4.

Types of the expressions if needed:
f.category - long
f.categoryName - String
f.value1 - BigDecimal
f.value2 - int

Was it already reported or should I file a bug report for it? Should I provide any additional information?

Thanks,
Alex
Re: Regression 2.4.1 -> 2.4.2 [message #1096645 is a reply to message #1096287] Wed, 28 August 2013 17:21 Go to previous messageGo to next message
James Sutherland is currently offline James Sutherland
Messages: 1939
Registered: July 2009
Location: Ottawa, Canada
Senior Member

That is surprising, can you include the SQL generated for both?

Also try the latest 2.5 release/build.


James : Wiki : Book : Blog : Twitter
Re: Regression 2.4.1 -&gt; 2.4.2 [message #1096707 is a reply to message #1096645] Wed, 28 August 2013 19:07 Go to previous message
Alex Panchenko is currently offline Alex Panchenko
Messages: 342
Registered: July 2009
Senior Member
I was able to create a test:

https://github.com/panchenko/regression242

2.4.1 - OK
2.4.2 - fails
2.5.0 - fails
2.5.1-RC1 - OK

Regards,
Alex
Previous Topic:How to manage two entities with the same name in one project?
Next Topic:Problem with JPA and User-defined type in Oracle
Goto Forum:
  


Current Time: Sat Nov 01 05:34:21 GMT 2014

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

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