You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jdo-dev@db.apache.org by "Michael Bouschen (JIRA)" <ji...@apache.org> on 2006/05/31 14:16:29 UTC

[jira] Created: (JDO-383) JPOX: issues with the default Unique setting for aggregate queries

JPOX: issues with the default Unique setting for aggregate queries  
--------------------------------------------------------------------

         Key: JDO-383
         URL: http://issues.apache.org/jira/browse/JDO-383
     Project: JDO
        Type: Bug

  Components: tck20  
    Versions: JDO 2 final    
    Reporter: Michael Bouschen
 Assigned to: Erik Bengtson 
    Priority: Minor
     Fix For: JDO 2 maintenance release 1


The JDOQL query Unique flag defaults to true for a query with a single result expression and the result expression is an aggregate (COUNT, MIN, MAX, AVG, SUM).  JPOX calculates the correct default value for Unique if the result expression is specified w/o any whitespaces between the aggreagte keyword and the expression in parenthesis: setResult("MIN(budget)"). However, JPOX defaults the Unqiue flag to false, if there is a blank after the aggregate keyword: setResult("MIN (budget)").

With the fix of JDO-381 the TCK test class DefaultUnique in package org.apache.jdo.tck.query.result fails, because I added some test queries having a blank after the aggregate keyword. They now return a list with the aggregate value instead of the value itself.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


[jira] Resolved: (JDO-383) JPOX: issues with the default Unique setting for aggregate queries

Posted by "Erik Bengtson (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/JDO-383?page=all ]
     
Erik Bengtson resolved JDO-383:
-------------------------------

    Resolution: Fixed

fixed in JPOX CVS

> JPOX: issues with the default Unique setting for aggregate queries
> ------------------------------------------------------------------
>
>          Key: JDO-383
>          URL: http://issues.apache.org/jira/browse/JDO-383
>      Project: JDO
>         Type: Bug

>   Components: tck20
>     Versions: JDO 2 final
>     Reporter: Michael Bouschen
>     Assignee: Erik Bengtson
>     Priority: Minor
>      Fix For: JDO 2 maintenance release 1

>
> The JDOQL query Unique flag defaults to true for a query with a single result expression and the result expression is an aggregate (COUNT, MIN, MAX, AVG, SUM).  JPOX calculates the correct default value for Unique if the result expression is specified w/o any whitespaces between the aggreagte keyword and the expression in parenthesis: setResult("MIN(budget)"). However, JPOX defaults the Unqiue flag to false, if there is a blank after the aggregate keyword: setResult("MIN (budget)").
> With the fix of JDO-381 the TCK test class DefaultUnique in package org.apache.jdo.tck.query.result fails, because I added some test queries having a blank after the aggregate keyword. They now return a list with the aggregate value instead of the value itself.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira