Apache JDO Project - Re: [jira] Commented: (JDO-245) JPOX must throw JDOUserException

This is Interesting: Free IT Magazines  
Home > Archive > Apache JDO Project > January 2006 > Re: [jira] Commented: (JDO-245) JPOX must throw JDOUserException





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Re: [jira] Commented: (JDO-245) JPOX must throw JDOUserException
Michael Bouschen

2006-01-05, 5:46 pm

Hi Craig,

[...]

>
>
> Yes, please. It's a different negative test from others because it's a
> boolean expression (ok) using non-aggregate terms (bad).


Just for my understanding: it is ok to use a non-aggregate expression as
long as it is a grouping expression, correct?

I added a new negative test to class Having:
SELECT department, AVG(weeklyhours) FROM Employee
GROUP BY department HAVING firstname == 'emp1First'
JPOX does not catch this error.

I propose the following:
- I check in the change with the new negative test.
- I reopen issue JDO-245.
- I really think the title of JDO-245 talking about "having clause
refering fields which are not part of the result clause" is misleading,
because the result clause does not matter here. I would like to change
the title.
- I would like to move the test class from the result package to jdoql.

What do you think?

Regards Michael
--
Michael Bouschen Tech@Spree Engineering GmbH
mailto:mbo.tech@spree.de http://www.tech.spree.de/
Tel.:++49/30/235 520-33 Buelowstr. 66
Fax.:++49/30/2175 2012 D-10783 Berlin

Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com