public static void checkCharsetAndCollateConsistentIfCharType( RelDataType type) { // (every charset must have a default collation) if (SqlTypeUtil.inCharFamily(type)) { Charset strCharset = type.getCharset(); Charset colCharset = type.getCollation().getCharset(); assert null != strCharset; assert null != colCharset; if (!strCharset.equals(colCharset)) { if (false) { // todo: enable this checking when we have a charset to // collation mapping throw new Error(type.toString() + " was found to have charset '" + strCharset.name() + "' and a mismatched collation charset '" + colCharset.name() + "'"); } } } }
public static void checkCharsetAndCollateConsistentIfCharType( RelDataType type) { // (every charset must have a default collation) if (SqlTypeUtil.inCharFamily(type)) { Charset strCharset = type.getCharset(); Charset colCharset = type.getCollation().getCharset(); assert null != strCharset; assert null != colCharset; if (!strCharset.equals(colCharset)) { if (false) { // todo: enable this checking when we have a charset to // collation mapping throw new Error(type.toString() + " was found to have charset '" + strCharset.name() + "' and a mismatched collation charset '" + colCharset.name() + "'"); } } } }
throw new AssertionError("RelDataType object should have been assigned " + "a (default) collation when calling deriveType"); } else if (!t0.getCollation().getCharset().equals( t1.getCollation().getCharset())) { return false;
throw new AssertionError("RelDataType object should have been assigned " + "a (default) collation when calling deriveType"); } else if (!t0.getCollation().getCharset().equals( t1.getCollation().getCharset())) { return false;
throw new AssertionError("RelDataType object should have been assigned " + "a (default) collation when calling deriveType"); } else if (!t0.getCollation().getCharset().equals( t1.getCollation().getCharset())) { return false;