DataNucleus JIRA is now in read-only mode. Raise any new issues in GitHub against the plugin that it applies to. DataNucleus JIRA will remain for the foreseeable future but will eventually be discontinued
Issue Details (XML | Word | Printable)

Key: NUCCORE-895
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Minor Minor
Assignee: Unassigned
Reporter: Andy Jefferson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
DataNucleus Core

In-memory query evaluation massaging into result class should allow for single field and of the right type

Created: 12/Aug/12 04:06 PM   Updated: 19/Aug/12 09:29 PM   Resolved: 12/Aug/12 04:07 PM
Component/s: Queries
Affects Version/s: None
Fix Version/s: 3.1.1


 Description  « Hide
If we have a query like
Query q = em.createQuery("SELECT a.farm FROM Animal a", Farm.class);
then there is a single field selected and it is of the result type. In this situation we currently fail due to the result class evaluator trying to evaluate field "a.farm", but should just take the input object


Sort Order: Ascending order - Click to sort in descending order
Andy Jefferson added a comment - 12/Aug/12 04:07 PM
SVN trunk fixes this now