[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-5220) Unit tests related to HHH-5063 and HHH-5135 fail on some dialects

Steve Ebersole (JIRA) noreply at atlassian.com
Thu May 13 11:49:24 EDT 2010


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-5220?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=37124#action_37124 ] 

Steve Ebersole commented on HHH-5220:
-------------------------------------

In reference to HHH-5063 at least, I wanted to point out the new dialect methods I added:
{code}
/**
 * Does this dialect support `count(a,b)`?
 *
 * @return True if the database supports counting tuples; false otherwise.
 */
public boolean supportsTupleCounts() {
    return false;
}

/**
 * Does this dialect support `count(distinct a,b)`?
 *
 * @return True if the database supports counting disintct tuples; false otherwise.
 */
public boolean supportsTupleDistinctCounts() {
    // oddly most database in fact seem to, so true is the default.
    return true;
}
{code}

Note, that I said it is odd that most databases seem to "supportsTupleDistinctCounts" only because most in fact seem to not "supportsTupleCounts".  The ANSI SQL spec in fact says both should be valid.

> Unit tests related to HHH-5063 and HHH-5135 fail on some dialects
> -----------------------------------------------------------------
>
>                 Key: HHH-5220
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-5220
>             Project: Hibernate Core
>          Issue Type: Bug
>          Components: testsuite
>    Affects Versions: 3.5.2
>            Reporter: Gail Badner
>            Assignee: Gail Badner
>             Fix For: 3.5.x, 3.6
>
>
> The fixes for HHH-5063 and HHH-5135 are OK, but there are problems when using particular dialects.
> For example:
> http://hudson.qa.jboss.com/hudson/job/hibernate-core-branch35-testsuite/15/database=mssql2005,jdk=java15,label=hibernate/testReport/org.hibernate.test.criteria/CriteriaQueryTest/testDistinctProjectionsOfComponents/
> http://hudson.qa.jboss.com/hudson/job/hibernate-core-branch35-testsuite/15/database=mssql2005,jdk=java15,label=hibernate/testReport/org.hibernate.test.hql/FunctionNameAsColumnTest/testNoArgFcnAndColumnSameNameAsNoArgFunctionHQL/
> There may be other dialects that are affected as well.

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

        


More information about the hibernate-issues mailing list