/** * Returns the collating sequence (the collation name) to use for the * resulting value of a comparison. * * @param col1 first operand for the dyadic operation * @param col2 second operand for the dyadic operation * * @return the resulting collation sequence. If no collating * sequence could be deduced throws a * {@link org.apache.calcite.runtime.CalciteResource#invalidCompare} * * @see Glossary#SQL99 SQL:1999 Part 2 Section 4.2.3 Table 3 */ public static String getCoercibilityDyadicComparison( SqlCollation col1, SqlCollation col2) { return getCoercibilityDyadicOperatorThrows(col1, col2).collationName; }
/** * Returns the collating sequence (the collation name) to use for the * resulting value of a comparison. * * @param col1 first operand for the dyadic operation * @param col2 second operand for the dyadic operation * * @return the resulting collation sequence. If no collating * sequence could be deduced throws a * {@link org.apache.calcite.runtime.CalciteResource#invalidCompare} * * @see Glossary#SQL99 SQL:1999 Part 2 Section 4.2.3 Table 3 */ public static String getCoercibilityDyadicComparison( SqlCollation col1, SqlCollation col2) { return getCoercibilityDyadicOperatorThrows(col1, col2).collationName; }