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

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 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 "", but should just take the input object

Andy Jefferson added a comment - 12/Aug/12 04:07 PM
SVN trunk fixes this now

Andy Jefferson made changes - 12/Aug/12 04:07 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Fix Version/s 3.1.1 [ 11630 ]
Resolution Fixed [ 1 ]
Andy Jefferson made changes - 19/Aug/12 09:29 PM
Status Resolved [ 5 ] Closed [ 6 ]