throws StandardException {
ValueNode operand = node.getOperand();
DataTypeDescriptor origType = operand.getType();
if (origType != null) {
if (!origType.getTypeId().isStringTypeId())
throw new StandardException("Collation not allowed for " + origType);
CharacterTypeAttributes characterAttributes =
CharacterTypeAttributes.forCollation(origType.getCharacterAttributes(),
node.getCollation());
operand.setType(new DataTypeDescriptor(origType, characterAttributes));
}