Examples of requiresParensForTupleDistinctCounts()


Examples of org.hibernate.dialect.Dialect.requiresParensForTupleDistinctCounts()

      else {
        String joinedFragment = StringHelper.join( ", ", columnExpressions );
        // avoid wrapping in parenthesis (explicit tuple treatment) if possible due to varied support for
        // tuple syntax across databases..
        final boolean shouldSkipWrappingInParenthesis =
            (isInDistinctCount && ! dialect.requiresParensForTupleDistinctCounts())
            || isInNonDistinctCount
            || getWalker().getCurrentTopLevelClauseType() == HqlSqlTokenTypes.ORDER
            || getWalker().getCurrentTopLevelClauseType() == HqlSqlTokenTypes.GROUP;
        if ( ! shouldSkipWrappingInParenthesis ) {
          joinedFragment = "(" + joinedFragment + ")";
View Full Code Here

Examples of org.hibernate.dialect.Dialect.requiresParensForTupleDistinctCounts()

      else {
        String joinedFragment = StringHelper.join( ", ", columnExpressions );
        // avoid wrapping in parenthesis (explicit tuple treatment) if possible due to varied support for
        // tuple syntax across databases..
        final boolean shouldSkipWrappingInParenthesis =
            (isInDistinctCount && ! dialect.requiresParensForTupleDistinctCounts())
            || isInNonDistinctCount
            || getWalker().getCurrentTopLevelClauseType() == HqlSqlTokenTypes.ORDER
            || getWalker().getCurrentTopLevelClauseType() == HqlSqlTokenTypes.GROUP;
        if ( ! shouldSkipWrappingInParenthesis ) {
          joinedFragment = "(" + joinedFragment + ")";
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.